开发者

Hosting a web service in an Android application

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜