Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 77
Registered: ‎10-07-2008
My Device: Bold 9000
Accepted Solution

onExposed Not Being Called


I have an issue whereby a screen is not be updated because it's "onExposed" method is not being called when I expect it to be.

Here is the scenario:

1. screen "foo" extends Mainscreen and is being displayed.

2. user selects a menu item which among other things displays screen "bar" which extends PopupScreen.

   - screen "bar" is displayed within the event thread using the following statement




3.  screen "bar" gets popped off the display stack by a background thread with the following statement.


    synchronized (application.getAppEventLock()) {


4. after step 3 I was expecting the overloaded "onExposed" method of the "foo" screen to be called and refresh the screen data. But this is not happening.


I've tried a number of things, but I cannot get the hidden screen to refresh itself when it is displayed.


I am running on OS4.2.1 simulator of the world phone.


Any suggestions would be greatly appreciated.




Posts: 77
Registered: ‎10-07-2008
My Device: Bold 9000

Re: onExposed Not Being Called

News Flash!! The problem was in my code. onExposed was being called, but not when I thought it would be.