Skip to content Skip to sidebar Skip to footer

Httpresponse Response = Client.execute(httpget), The Code After Httpresponse Doesn't Run

I've try to get data from my web /http://localhost/android_connection/getHttpGet.php which follow the code from this site,http://www.thaicreate.com/mobile/android-httpget-httppost.

Solution 1:

The problem is with your server url, android devices don't recognize the localhost url as this is your url of the machine. I personally recommend you to access your XAMP server by your machine IP but if you are working on emulator and want to work with local host only change the url to 10.0.2.2. Refer developer guide


Post a Comment for "Httpresponse Response = Client.execute(httpget), The Code After Httpresponse Doesn't Run"