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

Reply
New Developer
earamsey
Posts: 3
Registered: ‎07-22-2008
My Device: Pearl

Show "Icon + Counter" when app recieves event.

In this posting the term 'event' refers to an Email, SMS, MMS, Facebook or Socket type event as I have not yet decided on this.

 

I want to display an icon + counter at top of blackberry desktop when my application recieves external event. Blackberry when voicemail, sms, mms, and facebook messages arrive. Here is example;


Example Blackberry VoiceMail Counter 


and notice the "2" in front of tiny cassette icon indicating there are 2 new voice mails.

 

If this is not possible then are there any alternate solutions to indicate that my java app has X number of events that require attention? Also, I guess something would have to incrment the "Icon + Counter" pair too! Maybe my app can quietly do this in the background.

 

Thanks, Erica A Ramsey Mobile Application Developer Resume ~ http://home.comcast.net/~erica.ramsey/CV Some Project Screenshots ~ http://home.comcast.net/~erica.ramsey/CV/screens.html
Please use plain text.
Retired
bzubert
Posts: 86
Registered: ‎07-11-2008
My Device: Not Specified

Re: Show "Icon + Counter" when app recieves event.

This functionality is availabe in 4.6.  Check out the new messagelist package as well as the messagelistdemo in JDE 4.6, available here:

 

http://na.blackberry.com/eng/developers/devbeta.jsp#tab_tab_jde

Brian Zubert
Technical Partnership Manager
Research In Motion
Please use plain text.
Developer
richard_puckett
Posts: 191
Registered: ‎04-03-2008
My Device: Bold 9700

Re: Show "Icon + Counter" when app recieves event.

[ Edited ]

Not possible yet.*

 

As a work-around you could do what Google Mail does: Add a badge to your app icon (replace your nominal icon with a badged version) and change the app name to reflect the number of new messages available. This is all available in the HomeScreen class.

 

* See above. :smileyhappy: 

Message Edited by richard_puckett on 07-22-2008 10:43 AM
Please use plain text.