How to update screen in blackberry?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 01:37:58

问题


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.


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/6314707/how-to-update-screen-in-blackberry

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!