Skip to main content

Posts

Showing posts with the label page-refresh

How to refresh BlackBerry ui page on button click?

I may seem ignorant but I have not found much information about how to go about my problem developing my BlackBerry application. Basically I have constructed a UI that contains a few image buttons. What I want to do is when I click on one of the buttons, I want an image at the center of the screen to switch seemlessly to another image. I am currently not using any threads though from what I've gathered I need to? Or do I simply have to push a new screen in my button listener and recall the class's constructor and rebuild the page with different images? Sorry if this is unclear, I would really appreciate some basic info on how to do this or a link that explains page refreshing in detail for blackberry! Thanks alot EDIT : Okay here is a very small part of my code : This is basically the last thing I have tried in the listeners, I dont know how to change the image (flagField) when I press one of the two buttons! The only thing that worked for me was pushScreen(new