简体   繁体   English

从Web应用程序调用方法到Android应用程序

[英]Call a method from web app to android app

Is it possible to call a method / API / web service from a web application to an android application, something like android app become web service provider and the web app become web service client, 是否可以从网络应用程序调用方法/ API /网络服务到android应用程序,例如android app成为网络服务提供商,而web应用成为网络服务客户端,

I would like to refresh data on an android app by clicking on a button on a web application, 我想通过单击Web应用程序上的按钮来刷新Android应用程序上的数据,

You can use I-Jetty in your app and make your app as the web server.. use the source code and run the server from a android service. 您可以在应用程序中使用I-Jetty,并将您的应用程序用作Web服务器。使用源代码并通过android服务运行服务器。 More detail can be found at following link: 可以在以下链接中找到更多详细信息:

https://code.google.com/p/i-jetty/ https://code.google.com/p/i-jetty/

诸如Google Cloud Messaging之类的东西-http: //developer.android.com/google/gcm/index.html可能是您的最佳选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM