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

BlackBerry® OS Smartphones

Reply
Highlighted
Developer
Posts: 85
Registered: ‎02-13-2009
My Device: 9860
My Carrier: MTS

New message icon

Hi guys! I made application which receives email mesages. How can I change application icon on incomming message to my "unread" icon?

My application is started automatically when device is switched on. And have second entry point to start my application manually (with GUI). 

On starting automatically, it successfully sets icon and rollover icon:

 

HomeScreen.updateIcon(icon ,0);
HomeScreen.setRolloverIcon(icon2, 0);

but, on incomming message ( when FolderListener.messagesAdded is started), these functions raise  exception:

<Module with handle [921] and index [1] has no application entry point>

 

I tried  change index to 1,2,3... bu result is same....

Where is my issue? Perhaps exists another way to change icon at this moment? 

Please help. Thanks in advance.