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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.