0

I have an app running fine in emulator but not in mobile. That is app basically fetch some records from server using webservice.(SOAP). Installation is successfull and i can open the first page.but not able to proceed further due to server communication. I need your help in making this app to work fine in my android phone too. Thanks in advance!!

Yash Sampat
  • 30,051
  • 12
  • 94
  • 120

1 Answers1

1

You must be accessing the web service on your local network (localhost). An emulator can access a localhost web service, but a real device cannot. To test the app on an actual device, you need to expose your web service through a public IP address (public URL).

Yash Sampat
  • 30,051
  • 12
  • 94
  • 120
  • `To test the app on an actual device, you need to expose your web service through a public IP address (public URL).`. No. If wifi is used and both sides are in the same network a local ip address will do. – greenapps Feb 23 '15 at 13:06
  • By `local network` I meant a `localhost`. The OP understood what I meant, as any seasoned web developer would. Wifi does not provide connectivity through a localhost IP address, did you ever think of that ? Please clarify your own concepts before you launch into a tirade. – Yash Sampat Feb 23 '15 at 13:10