Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry Push Development

Reply
Developer
Agni
Posts: 19
Registered: ‎05-28-2009
My Device: Not Specified
Accepted Solution

Notification badge

 

Does anyone know how to show the notification badge on the top of our app icon. It is that small star indicator when we receive any updates.

 

I was not able to find any document related to it.

 

Developer
challgren
Posts: 70
Registered: ‎05-04-2009
My Device: Blackberry 9800/Blackberry 9530/Blackberry 9700/Blackberry 8530

Re: Notification badge

You need to set this up your self. You can do this using the HomeScreen class and access the method updateIcon(Bitmap newicon) Documentation is at http://www.blackberry.com/developers/docs/4.5.0api/net/rim/blackberry/api/homescreen/HomeScreen.html...)

If you find this post useful please give kudo's
Developer
Agni
Posts: 19
Registered: ‎05-28-2009
My Device: Not Specified

Re: Notification badge

[ Edited ]

Thank you so much!

 

Just for reference,

 

 Bitmap icon = Bitmap.getBitmapResource("test.png");

 

net.rim.blackberry.api.homescreen.HomeScreen.updateIcon(icon);

 

 

Developer
challgren
Posts: 70
Registered: ‎05-04-2009
My Device: Blackberry 9800/Blackberry 9530/Blackberry 9700/Blackberry 8530

Re: Notification badge

I'll actually be working on a method to draw the a number with the red circle on the icon. I'm still messing around with it but I'll post some code for you.

If you find this post useful please give kudo's