You know what I'm talking about: for example when you get multiple new emails the notification icon in the status bar is augmented with a little red circle that contains number of unread mails. Twitroid has the same icon. Any idea how it's done? I don't think (or so I hope) there are 10000 similar icons. Is this red circle generated and overlaid the notification icon? If so - any code snippets will be much appreciated.
+8
A:
This one is nice and easy, just change Notification.number
to whatever number you want to appear on your Notification, e.g.:
Notification notification = new Notification(icon, tickerText, when);
notification.number = 4;
Daniel Lew
2009-12-18 18:10:33
Awesome! Thanks! Stupid me didn't even considered that this may be already built in
DroidIn.net
2009-12-18 20:18:01
A:
HI In one of the case, Bluetooth application is displaying multiple icons not number. I didnt above changes it is displaying number and also multiple icons.. how to disable this?
Gururaja B O
2010-03-29 08:30:46
Guru - yours is not an answer but question. You should leave it as comment or post your own question
DroidIn.net
2010-04-03 05:30:52
A:
A good example of how to use the notification bar can be found in this tutorial:
http://www.firstdroid.com/2010/05/09/learn-by-example-using-notification-bar/
Hope it helps, Adrian.
azelez
2010-06-02 05:32:29