Note that 10.0.2.2 is the "magic" IP address you'd use if running the app in the emulator. If you run it on the actual device (maybe over a WLAN) then you need to use the IP address assigned by the router to the desktop machine, which is propably something like 10.0.1.2.
Bilal A.Siddiqui wrote:I am running this app in an emulator. my application is just sending "get" request to a servlet which is mapped in web.xml
but i am getting connection refused.
And you will, until the message stops returning the localhost IP address 127.0.0.1. Something's still wrong with your URL.
Customer surveys are for companies who didn't pay proper attention to begin with.
Joined: Feb 22, 2010
i have a doubt now whether this android activity knows about my servlet or not. I mean does it know to lookup for that in web.xml. i just felt so because whether tomcat server is ON or OFF the error is same.