android - Not getting the response after adding debug proxy -


I have an Android application, where I am connected to the server and the data is sung. To show the map I have added ' -http-proxy IP: port -debug-proxy ' to 'Extra emulator command line option' in Eclipse. I have added it since I responded properly I'm unable to get I am using an HTTP connection to connect to the server and receive feedback. I am using the following code:

  HTTPRSpace response = httpclient.execute (httppost); Log.v ("feedback", "+ response.toString ()); ResponseBody = EntityUtils.toString (response.getEntity ()); Log.v ("ResponseBody", "+ responseBody);   

The first log statement is executing but the second log statement is not being executed.

I have been following the following in the console:

= 0 data = 0 n = 0 = 0

reset (received) by peer

The body is closed (13908 bytes)

I am not getting the full response and the connection is lost.

If I remove '-http-proxy IP: port -debug-proxy' then all is working properly.

Did you do the internet in your AndroidManifest.xml Add permission?

Syntax: Use-permission Android: name = "android.permission.INTERNET"

Comments