Reputation: 439
How do I do remote API call in Android Apps using Phonegap???
Upvotes: 6
Views: 12963
Reputation: 23273
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
Upvotes: 5
Reputation: 118
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.
Upvotes: 0