3

I am making a web app that needs to communicate with the Android phone, what is the best way to get data from the web app to the phone? I have heard of C2DM but I don't know any good guides for it. I have tried polling, but that is way too heavy on the battery. Whats the best way to accomplish this?

Qasim
  • 1,686
  • 4
  • 27
  • 51

2 Answers2

1

The best practice is the following: using C2DM your phone should just receive a notification about the event. Basing on this event you connect to a resource and download necessary information. This and this resources I used when I've tried to develop my C2DM application.

Yury
  • 20,618
  • 7
  • 58
  • 86
0

As well as C2DM you could also look at services such as Urban Airship or if the communication with the device is interactive then you could look at a realtime web technology.

leggetter
  • 15,248
  • 1
  • 55
  • 61