I need a way to push data to my device from my web server, how can I accomplish this? And I would love a guide to help me. I’ve been stuck on C2DM forever and its just too much for me to handle. The guides are just all list lines after lines of code and don’t explain what they do, which sucks. I’d love if you could link me to a guide that can teaches how to push data to the android device.
Share
I agree that there isn’t too much documentation about CD2M. For me, the best docs are the Google examples. You can grab them and follow the code to understand how this works. Examples are here and here.
C2DMBaseReceiverto provide your own implementation (you get a callback when you receive a message, a callback for an error, and so on). Remember to register these things in your Manifest, look at the Manifest in those examples to know how to do it.