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

Java Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
New Developer
Posts: 19
Registered: ‎07-14-2008
My Device: Not Specified

Status of Message Icon

is there any way to get the status of the message icon that appears on the banner of the main screen (it looks like a little envelope). more specifically i want to know when it has the little red "*" on it.

 

Thanks

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Status of Message Icon

Store.getUnreadMessageCount() just might be what you are looking for.

 

-de

 

Retired
Posts: 86
Registered: ‎07-11-2008
My Device: Not Specified

Re: Status of Message Icon

RexDoug is correct that getUnreadMessageCount() will tell you how many unread messages there are.  Using a FolderListener will let you know when new messages arrive, which are the trigger for the red * to show up beside the envelope icon.

 

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800698/What_Is...

Brian Zubert
Technical Partnership Manager
Research In Motion
New Developer
Posts: 19
Registered: ‎07-14-2008
My Device: Not Specified

Re: Status of Message Icon

thanks, i have been using getUnreadMessageCount() and it is not what i am looking for as it only gets the number of unread emails, and not sms messages. In the folder listener is there any way to get when that red * goes away.

 

I have unread email messages that i want to keep unread, but notify myself when there is a new message (red * is there) that i am not aware of and stop this notification when the red * is gone.

 

Thanks

Highlighted
Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Status of Message Icon

I haven't found any better way to accomplish what you are looking for. Even if you set up a FolderListener on the inbox, you will not get notified for SMS. You *can* set up an SMS catcher, but then you will not get any notification when the SMS is opened or deleted.