Googlecloudmessaging Android Import Issue
Solution 1:
I wonder why you are looking for other example while google have provided you complete working code example including both server and client. What do you need is just to check out source code from here. Import project named "gcm-client
" into work space. Add "google-play-services_lib
" project from android sdk folder as a library. Change your SENDER_ID in DemoActivity located in com.google.android.gcm.demo.app
package. That's it.
Please ignore samples/gcm-demo-client in same downloaded code directory. It uses old deprecated classes. You may reuse its utility class ServerUtilities
to send/delete registration id to/from your server. [Thanks NickT for identifying ]
Edit:
Deprecated code is still exist as gcm-client-deprecated
on given repository. Just ignore it and use gcm-client
.
Post a Comment for "Googlecloudmessaging Android Import Issue"