Picture
On a BlackBerry, the indication panel at the top of the display can be used to display alerts to the user.
Typically this is used to display status changes such as new email messages, new facebook messages or new news feed items etc.
Since OS 4.6, BlackBerrys have had the ability to easily add entries to the notification area.  The image on the left shows a BlackBerry Torch with 2 indicators.

To add an indicator into the notification area, requires that an icon be loaded and stored in the ApplicationIndicatorRegistry and then displayed with an optional numeric value next to it.
To register the indicator icon, use the following code:
EncodedImage indicatorIcon = EncodedImage 
.getEncodedImageResource("indicator.png");
ApplicationIcon applicationIcon = new ApplicationIcon(indicatorIcon);
ApplicationIndicatorRegistry.getInstance().register(applicationIcon,
false, false);
This piece of code loads the image indicator.png from the application and stores it in the ApplicationIndicatorRegistry.  The parameters to the register() method are:
  1. The ApplicationIcon to register
  2. Boolean flag indicating whether to display an icon only or whether to display a numeric value alongside the icon.
  3. Boolean flag indicating whether the application indicator is visible when first created.
Once the icon has been loaded and stored in the registry, it can be updated easily in the notification area:
ApplicationIndicator indicator = ApplicationIndicatorRegistry 
.getInstance().getApplicationIndicator();

indicator.setValue(value);
indicator.setVisible(true);
3/28/2012 03:32:33 am

will come back soon

Reply
7/12/2012 12:26:00 am

will be restored soon

Reply
8/27/2012 06:09:11 pm

Excellent! I admire all the helpful data you've shared in your articles. I'm looking forward for more helpful articles from you. :)

Joseph Aidan
www.arielmed.com

Reply
9/27/2012 12:37:57 pm

THX for info

Reply



Leave a Reply.