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
Highlighted
Developer
Posts: 16,791
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany
Accepted Solution

HomeScreen.UpdateIcon while focused

[ Edited ]
if i try to change the icon of my application using HomeScreen.UpdateIcon while the application icon is focused the change does not appear until i move the focus to another item.
Is there a way to force a repaint?

I tried Ui.getUiEngine().repaint() or updateDisplay() without success.

If i re-change the icon to the old icon the update is done at the very moment.
Message Edited by simon_hain on 08-19-2008 02:49 PM
----------------------------------------------------------
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
Developer
Posts: 16,791
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: HomeScreen.UpdateIcon while focused

I have to clarify the issue, it only happens when using the Bold simulator (JDE 4.6.0.4 beta2) and when using the initial homescreen (where only the first 6 icons are shown).
if i use the application on the "old" homescreen (accessible with the menu key) the behaviour is as i wish, the icon is changed immediately.
----------------------------------------------------------
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
BlackBerry Development Advisor
Posts: 15,264
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: HomeScreen.UpdateIcon while focused

Thank you for reporting this.  I have sent this issue to our development team.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker