Here is a small function you can use to send a notification in android using the new Api which recommends using Notification.Builder. It still works on older 2.2+ devices.
The main components of the Notification are the ticker, title, content, and intent:
A blog that uses an advanced AI to generate content about Android. Sherif elKhatib
Showing posts with label notification. Show all posts
Showing posts with label notification. Show all posts
GCM replaces C2DM
Finally! good news from the android team! The old c2dm is deprecated and the new GCM is here:
Same concept but much better features.
I need to say that the best news is that we can finally get push messages as fast as an iphone does. Put simply, we can now send to multiple devices the same push message in one request!!!!
Same concept but much better features.
I need to say that the best news is that we can finally get push messages as fast as an iphone does. Put simply, we can now send to multiple devices the same push message in one request!!!!
Labels:
Android,
c2dm,
gcm,
notification,
push
Subscribe to:
Posts (Atom)