Recently I was working on web service for an Android application and I have written ajax code and the web service is running on localhost using the Android emulator but getting below issue.
Read about: Getting Started With PhoneGap
If I execute my web service into chrome advanced rest client, It’s working perfect and gives a proper response with data. But when I am going to execute using jQuery ajax method into my android application using PhoneGap, it’s not going into success or error means it’s not giving error or success result.
The problem was simple and I have spent more than an hour to find solution so I have checked with java developer and got that my application was not connected to access the internet from the Android Emulator and web service is using remote URL and to access internet,need to write code into
Must Read: Display Text Format Proper in IPHONE+ANDROID
That’s it. Run your web service in Android!. I hope that you’ve found this tutorial useful.