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.
精彩评论