How do I call remote API using Phonegap for Android?

Surya picture Surya · Feb 27, 2012 · Viewed 12.9k times · Source

How do I do remote API call in Android Apps using Phonegap???

Answer

Simon MacDonald picture Simon MacDonald · Feb 27, 2012

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