How do I call remote API using Phonegap for Android?
How do I do remote API call in Android Apps using Phonegap??? Just use XmlHttpReqquest to communicate with your server. Here is my stock example that gets a list of tweets from Twitter: http://simonmacdonald.blogspot.com/2011/12/on-third-day-of-phonegapping-getting.html If you use PhoneGap in combination with jQuery Mobile you can use the Ajax function of jQuery. Simply pass the url and use the succes or error callback to edit or use returned data. 来源: https://stackoverflow.com/questions/9464563/how-do-i-call-remote-api-using-phonegap-for-android