62

My web application runs in localhost server. In my emulator the URL is http://localhost:8080/myaction

Is it possible to retrieve the information from the server?

Roman C
  • 49,761
  • 33
  • 66
  • 176
saravanan
  • 1,229
  • 6
  • 16
  • 17
  • 15
    Please mark your preferred answer as correct (checkmark beside the answer) so that others may see at a glance which is the correct answer and the author gets the reward. – ubuntudroid May 02 '11 at 09:13

1 Answers1

128

Localhost is device's own loopback interface, if you're trying to access your development machine use 10.0.2.2.

More about it here.

csusbdt
  • 96
  • 7
Nikola Smiljanić
  • 26,745
  • 6
  • 48
  • 60
  • 1
    thank u. and how to get the database connection from our web application. i want to retrieve the data from database i like listview in android pls help me – saravanan Feb 10 '10 at 09:37
  • 1
    yeah... i'm not sure that the 10.0.2.2 is pointing to 127.0.0.1:8080 instead of 127.0.0.1 only. Hey, anyway, have you solved it @saravanan? – gumuruh Jun 10 '14 at 06:00