Why does not http response work with 3G in my android device?
<p>I wrote some code in android and I am tryin to get http response from a website . I done it but when ı uploade the app to the my android device ,I can not read response while call is coming. Actually ,I wanna show the http response in the screen while call is coming. please help me Thanks.....</p>

<p>My HTTPPOST AND READ CODES</p>

<p>

<pre><code>    StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();

    StrictMode.setThreadPolicy(policy); 


    InputStream is = null;
     String result = "";
     ArrayList&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;();

     try 
     {  HttpParams params = new BasicHttpParams();
     params.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1);
           HttpClient httpclient = new DefaultHttpClient(params);
           HttpPost httppost = new HttpPost("http://www.whois118.com/broadcast.php");
           nameValuePairs.add(new BasicNameValuePair("telefon",tlf));
           nameValuePairs.add(new BasicNameValuePair("hash", hash));
           httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
           HttpResponse response = httpclient.execute(httppost);
           HttpEntity entity = response.getEntity();

           is = entity.getContent();
           int length;
      }

      catch (Exception e)
      {
       Log.e("log_tag", "Error in http connection " + e.toString());
      }
  // convert response to string
      try 
      {
           BufferedReader reader = new BufferedReader(new InputStreamReader( is, "iso-8859-1"), 8);
           StringBuilder sb = new StringBuilder();
           String line = null;

       while ((line = reader.readLine()) != null) 
       {
           sb.append(line + "\n");
       }

        is.close();
        result = sb.toString();



       Log.v("log","Result :"+result);
  } 
  catch (Exception e)
  {
   Log.v("log", "Error converting result " + e.toString());
  }


    return result;
}
</code></pre>
