开发者

How to update screen in blackberry?

开发者 https://www.devze.com 2023-03-12 08:42 出处:网络
i am developing one app. and i a开发者_如何学运维m facing a problem related to updating the screen,which is already in stack.I tried to use myappscreen.invalidate() on button click,but it doesn\'t upd

i am developing one app. and i a开发者_如何学运维m facing a problem related to updating the screen,which is already in stack.I tried to use myappscreen.invalidate() on button click,but it doesn't update screen.

Please help me to solve this problem.


Is your screen the active screen?

To redraw the active screen, you should just need to call the invalidate() method to cause the screen to refresh.

Where are you calling invalidate() from? You cannot call invalidate() from a Timer thread unless you have got an eventlock.


If you want to update screen then override activate() of UiApplication and write code in that which you want to update.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号