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
BlackBerry Development Advisor
Posts: 15,813
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Red Astrix icon for app ?

Quote from previous forum:


newbie100

Posts: 115
Registered: Jun, 2007

Red Astrix icon for app ?
Posted: Jul 11, 2008 1:20 PM
Reply
Hi,

I guess I am being lazy by posting this question...

Does anyone know of any sample code that shows how I can put a "red asterisk" on my app icon on the homescreen when my app gets triggers an event (new information present)

I guess I have to look at the HomeScreen API, but I have seen another post where someone had problems with icons on the homescreen not being updated for some themes, but success with others....


Thanks

 


msohm

Posts: 2,226
Registered: Jul, 2005

Re: Red Astrix icon for app ?
Posted: Jul 11, 2008 1:38 PM
Reply
The HomeScreen API is used for this. You can change the image used for your application between one with a red asterisk on it and one without.

Mark Sohm
BlackBerry Developer Journal
www.blackberrydeveloperjournal.com

 

patrick.waugh

Posts: 69
From: Paducah, Kentucky
Registered: Jun, 2008

Re: Red Astrix icon for app ?
Posted: Jul 11, 2008 11:42 PM
Reply
But that method seems like it would not be "theme compliant". In other words, in themes, that "alert" icon is a separate icon, and the system "decides" to overlay it based on state.

Seems to me that somehow we need to be able to set a "state", so that the theme knows to display that icon.

How does one do that so that this works with themes?

There is no way to programmatically do what you describe. 
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
New Developer
Posts: 9
Registered: ‎12-22-2008
My Device: Not Specified

Re: Red Astrix icon for app ?

Hi,

 

I am also having the same problem.I need to replace the image of the application icon with new image.

 

Can you give me the sample code?

 

 

Thanks

judy

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

Re: Red Astrix icon for app ?

See HomeScreen in the API docs.

 

HomeScreen.updateIcon(Bitmap bitmap)