Skip to content Skip to sidebar Skip to footer

Android Application Dopost

I am having a problem doing a simple http post request from my android app to my Google Application. So here is the error message: 07-16 15:58:02.314: E/AndroidRuntime(911): FATAL

Solution 1:

If you are debugging in a local server, change the IP you want to access, and set this one: 10.0.2.2. So, your httpost will look this way:

HttpPosthttppost=newHttpPost("http://10.0.2.2:8888/mywebapp");

For more info, http://developer.android.com/tools/devices/emulator.html#networkaddresses

Post a Comment for "Android Application Dopost"