Http Client while using mobile data
<p>I'm trying to make a get request to a servlet but I keep getting a time out exception, while using the mobile data connection</p>

<blockquote>
  <p>java.net.SocketException: The operation timed out</p>
</blockquote>

<p>When using the phone mobile data connection, I can surf the web on the browser so its not my data bundle, and the code works on the wifi connection no problem.</p>

<p>I tried setting the timeout to something like 1000000 milliseconds but still get the exception, can anyone help me?</p>

<p>here is the code I am using</p>

<pre><code>            HttpParams httpParameters = new BasicHttpParams();
            HttpConnectionParams.setConnectionTimeout(httpParameters, 1000000 );
            HttpConnectionParams.setSoTimeout(httpParameters, 1000000 );
            HttpConnectionParams.setTcpNoDelay(httpParameters, true);
            HttpClient httpclient = new DefaultHttpClient(httpParameters);
            HttpResponse response = null;
            Log.d(TAG, "" + id[0]);


            response = httpclient.execute(new HttpGet(
                    "http://192.168.1.10:8080/serv/request?id=" + id[0]));
            Log.d(TAG, response.toString());
            Log.d(TAG, "status" + response.getStatusLine());
</code></pre>
