Search code examples
viewblackberry

What are some methods to know when a MainScreen will appear?


I'm working on a blackberry application with navigation through multiple screens. Is there a way to know when a MainScreen becomes visible like the viewWillAppear method in iOS when I pop one MainScreen and go to a MainScreen that already exists on the view stack?.


Solution

  • you can override protected void onExposed() in your main screen class and it will be invoked when this screen is revealed by a screen getting popped off the display stack.