12-23-2008 04:09 PM
I have a popupscreen app that when a menu item is selected a mainscreen-implemented screen will display
allowing the user to set options. However, when invoked the options screen is shown behind the popupscreen.
How do I 'hide' the popupscreen and give control to the options screen?
I'm calling my options screen in the following manner:
protected MenuItem _myItem = new MenuItem("Configure", 100, 10)
public void run()
UiApplication.getUiApplication().pushModalScreen( new AddItemScreen() );
Is there something wrong in this implementation?
Solved! Go to Solution.
12-23-2008 05:10 PM
12-23-2008 06:53 PM
12-23-2008 08:44 PM
First off, you are using a deprecated API to push the screen.
Second, you should not push a screen from within it's constructor.
Something more like this woud be better:
Myscreen screen = new Myscreen();
(Or this might be "pushModalScreen instead)
Next, you should dismiss the popup once you put up another screen.
12-23-2008 09:32 PM
12-23-2008 09:48 PM
01-02-2009 12:15 PM