Mastering notifications in android applications
Travis Himes
Android Architect @ MeetMe
* Feel Free to ask questions!
What is a notification?
...it depends ...
Pre-Honeycomb
Honeycomb+
Jellybean+
Lets expand on that a little...
Big text
Inbox
big picture
Push notifications
*Not those notifications
GCM -or- C2DM
Standard Notifications
Lots of things you can control
Use the builders!
Text
ticker
n.tickerText = "Notification has arrived!";
builder.setTicker("Notification has arrived!");
Title and content
n.title = "Hello notification";
n.text = "Just saying \"hi\"!";
builder.setContentTitle("Hello notification");
builder.setContentText("Just saying \"hi\"!");
You only have so much space for conte...
Number
notification.number = 5;
builder.setNumber(5);
Made with Slides.com