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

Native Development

Reply
New Contributor
manudev
Posts: 4
Registered: ‎05-14-2013
My Device: Bold
My Carrier: 918686369390

Notification is not working

Hello all,

 

I am trying to show some notification in my app ,for that i have used the below pice code and this is working fine on OS7 .not working on BBOS5 and 6, help me in this case ...

 

ApplicationIndicatorRegistry reg = ApplicationIndicatorRegistry.getInstance();

EncodedImage image = EncodedImage.getEncodedImageResource("notification.png");

ApplicationIcon icon = new ApplicationIcon(image);

ApplicationIndicator indicator = reg.register(icon, false, true);
indicator.setValue(5);

indicator.setIcon(icon);
indicator.setVisible(true);

 

 

Thanks in advance..

 

 

Please use plain text.
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Notification is not working

Wrong forum.

Please use plain text.