How to update screen in blackberry?

2019-07-19 05:02发布

i am developing one app. and i am 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.

2条回答
劫难
2楼-- · 2019-07-19 05:27

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.

查看更多
乱世女痞
3楼-- · 2019-07-19 05:29

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

查看更多
登录 后发表回答