Why the Http Post in my android application gets Timeout exception when the device is connected via 3G?
<p>In my Android application I run a <code>http post</code> and I get <code>timeout</code> exception when i am connected via <code>3G/4G</code> and not via wifi (I send images but this happened with images of 1 Kb as well, the problem it's not the size of image, I am sure about this).</p>

<p>Here the code.</p>

<p>I use Android Asynchronous <code>Http Client</code></p>

<p>Thanks in advance.</p>

<pre><code>    AsyncHttpClient httpClient = new AsyncHttpClient();
    RequestParams requestParams = new RequestParams();
    httpClient.setTimeout(25000);
    httpClient.setConnectTimeout(25000);
    httpClient.setResponseTimeout(25000);
    destination = new File(path);
    requestParams.put("file", destination);
    httpClient.post("http://" + serverUrl + ":8081/readplate", requestParams, new JsonHttpResponseHandler() {

                @Override
                public void onFailure(int statusCode, Header[] headers, java.lang.Throwable throwable, org.json.JSONObject response) {
                   //exception here
                   ...

                }

                @Override
                public void onSuccess(int statusCode, Header[] headers, org.json.JSONArray response) {

                    ...

                }
    }
</code></pre>