How do I call remote API using Phonegap for Android?

前端 未结 2 821
时光说笑
时光说笑 2021-01-12 22:04

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

相关标签:
2条回答
  • 2021-01-12 22:45

    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.

    0 讨论(0)
  • 2021-01-12 22:47

    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

    0 讨论(0)
提交回复
热议问题