title: HttpHostConnectException 10.0.2.2:8080 refused
body: <p>On executing the following statement the app does not respond for a minute and then following logcat message occurs :</p>
  
  <pre><code>     HttpPost httpPost = new HttpPost("http://10.0.2.2:8080/webapp/CreateUser");
  </code></pre>
  
  <p>logcat -</p>
  
  <pre><code> org.apache.http.conn.HttpHostConnectException: Connection to http://10.0.2.2:8080 refused
  </code></pre>
  
  <p>PS - i've tried using "ip address" , 127.0.0.1 AND localhost instead of 10.0.2.2 still the same case.</p>
  
  <p>Also the permissions for INTERNET and ACCESS_NETWORK_STATE are also in the manifest file.</p>