How do I call remote API using Phonegap for Android?

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

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

2条回答
  •  孤独总比滥情好
    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

提交回复
热议问题