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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
Jam321
Posts: 59
Registered: ‎06-15-2012
My Carrier: XZY

Get * on UI application when somthing new is available

 

HI,

        In my application i have alternate entry points. from one point will start background thread which is autostart. another is UI application. and in my background thread i am  cheking update to server if any found i want to set * (update notification) on the ui application icon

how can i do that ???. please give some idea to slove this.

 

Thanks

JaM321

Please use plain text.
Developer
simon_hain
Posts: 14,064
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: Get * on UI application when somthing new is available

you can use http://www.blackberry.com/developers/docs/7.1.0api/net/rim/blackberry/api/homescreen/HomeScreen.html... (since 6.0), on earlier OS versions you would have to replace the application icon.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
Jam321
Posts: 59
Registered: ‎06-15-2012
My Carrier: XZY

Re: Get * on UI application when somthing new is available

hey simon thanks for replay i know that  and i tried use that like  HomeScreen.setNewState(true). but it is not working. 

i want to set this HomeScreen.setNewState(true) to UI application from background thread.  and i tried with this also


int handler = CodeModuleManager.getModuleHandle("JAM");
ApplicationDescriptor appDescriptor = CodeModuleManager.getApplicationDescriptors(handler)[0];
ApplicationDescriptor appDescriptor = CodeModuleManager.getApplicationDescriptors()[0];
HomeScreen.setNewState(true,appDescriptor);

 

it is working but throwing the exception after some time because of Module handles can be transitory.

 

Thanks

JaM321


 

Please use plain text.
Developer
simon_hain
Posts: 14,064
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: Get * on UI application when somthing new is available

maybe you can decide to solve a single problem in a single thread?
http://supportforums.blackberry.com/t5/Java-Development/illegalargumentexception-in-CodeModuleManage... seems to cover the same issue.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.