BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-22-2010, 10:10 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jun 2010
Model: 8530
PIN: N/A
Carrier: Sprint
Posts: 48
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to create custom icon to indicate an unread message in blackberry development?

Please Login to Remove!

How to create/display icon to indicate an unread message in blackberry application development?

Last edited by romah : 07-22-2010 at 11:20 AM.
Offline  
Old 07-22-2010, 12:40 PM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Jun 2010
Model: 8530
PIN: N/A
Carrier: Sprint
Posts: 48
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am asking how to display an icon to indicate an unread message in my own application. While there is no new message, it should not display the icon. Actually I want to show that icon in my statusbar, which will be viewed from every page. Currently I have few text in status bar, like Date and Time. I am using setStatus() function. Now I need to display an icon also, if there is new message. How can I do this programmatically?
Offline  
Old 07-22-2010, 12:53 PM   #3 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default

Actually after re-reading your second post I'm not sure I know what you want to do.
__________________
My other Blackberry is a PlayBook.

Last edited by hrbuckley : 07-22-2010 at 12:54 PM.
Offline  
Old 07-29-2010, 01:45 AM   #4 (permalink)
New Member
 
Join Date: May 2010
Model: 7100T
PIN: N/A
Carrier: Generic
Posts: 10
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default


This you can do in OS version 4.6 and above.
Solution is :

EncodedImage mImage = EncodedImage.getEncodedImageResource("applicationI ndicatipor.png");
ApplicationIcon mIcon = new ApplicationIcon(mImage);
ApplicationIndicatorRegistry reg = ApplicationIndicatorRegistry.getInstance();
ApplicationIndicator indicator = reg.register(mIcon, false, true);
indicator.setValue(55);

//To change Icon
ApplicationIndicatorRegistry reg = ApplicationIndicatorRegistry.getInstance();
ApplicationIndicator appIndicator = reg.getApplicationIndicator();
appIndicator.setIcon(newIcon);

Offline  
Old 07-29-2010, 02:11 PM   #5 (permalink)
Knows Where the Search Button Is
 
Join Date: Jun 2010
Model: 8530
PIN: N/A
Carrier: Sprint
Posts: 48
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yogesh, Thank you very much. Yes, it displays icon. Can we make this icon hyperlink so that it navigates to another page?
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

NEW Osram Sylvania QTP1x20MH SM UNV-F Ballast 120/277 Volt 20 Watt
$39.99
NEW Osram Sylvania QTP1x20MH SM UNV-F Ballast 120/277 Volt 20 Watt picture(2) Advance 71A5005-P Ballast
$69.99
(2) Advance 71A5005-P Ballast  pictureMetalarc pro-tech Metal Halide Bulb E17 MP100 med ballast
$9.0
Metalarc pro-tech Metal Halide Bulb E17   MP100  med ballast  pictureCrestron GLB-DALI-T-2 Green Light® 2 Lamp DALI® Ballast
$49.99
Crestron GLB-DALI-T-2 Green Light® 2 Lamp DALI® Ballast pictureLOT of 3 GE PROLINE T12 BALLASTS // Product Code: 74473 / GE-240-RS-MV-N-DIY
$30.0
LOT of 3 GE PROLINE T12 BALLASTS // Product Code: 74473 / GE-240-RS-MV-N-DIY picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.