Showing posts with label Android4. Show all posts
Showing posts with label Android4. Show all posts

April 26, 2012

Resolution: W/System.err(533): org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused while running Android App

Issue: W/System.err(533): org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused while running Android App.

Resolution: Add following code in AndroidManifest.xml file

<uses-permission android:name="android.permission.INTERNET">  
  after

<uses-sdk android:minSdkVersion="15" />