title: Android unable to resolve host with HttpPost - java.net.UnknownHostException
body: <p>In my app am parsing json with HttpPost like this</p>
  
  <p>`</p>
  
  <pre><code>HttpClient httpClient = new DefaultHttpClient();
  HttpParams httpParameters = httpClient.getParams();
  HttpConnectionParams.setTcpNoDelay(httpParameters, true);
   HttpContext localContext = new BasicHttpContext();
  
    String url="http://ashishva.comxa.com/getdata_shoplistl_f.php?route="+sroute+"&amp;shop_type="+sshoptype;
   HttpPost httpGet = new HttpPost(url);
    HttpResponse response = httpClient.execute(httpGet, localContext);
     BufferedReader reader = new BufferedReader(new  InputStreamReader(response.getEntity().getContent()`
  </code></pre>
  
  <p>My manifest file is set correctly for internet access</p>
  
  <pre><code>  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
    &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  </code></pre>
  
  <p>I am getting the json   in my browser, but getting the results in my android phone and emulator SOMETIMES ONLY. Why is this happening so? Why getting sometimes and not getting later. </p>
  
  <p>While am not getting any data , am getting the exception </p>
  
  <pre><code>"java.net.UnknownHostException: Unable to resolve host "ashishva.comxa.com": No address associated with hostname"
  </code></pre>