开发者

Hosting a web service in an Android application

开发者 https://www.devze.com 2023-03-06 01:58 出处:网络
Is there any way to host a web service from an Android application? I will be hosting RESTful services via WCF and w开发者_开发知识库ould like to be able to \"push\" data to an Android app. I understa

Is there any way to host a web service from an Android application? I will be hosting RESTful services via WCF and w开发者_开发知识库ould like to be able to "push" data to an Android app. I understand this could be done with polling but would like to try to avoid that. I was thinking if I could host a web service from the Android app, I would be able to call it from my server. Any ideas would be appreciated.


You can use Cloud to Device Messaging (C2DM) to push data from a server to the device. This will eliminate the need to keep polling a webserver for updated data.

Then, use normal web access methods to access a server's data on any particular event.

Good enough? or you need more assistance?
Just revert.

0

精彩评论

暂无评论...
验证码 换一张
取 消