Sean
Sean

Reputation: 2463

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 would 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.

Upvotes: 0

Views: 1719

Answers (1)

Aman Aalam
Aman Aalam

Reputation: 11251

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.

Upvotes: 1

Related Questions