In my app, I want to open a MainScreen from another MainScreen. How can I do this?
From UiApplication I can use pushScreen(Screen) to go to a MainScreen. But when I try the same from a MainScreen I get a JVM error 104.
In my app, I want to open a MainScreen from another MainScreen. How can I do this?
From UiApplication I can use pushScreen(Screen) to go to a MainScreen. But when I try the same from a MainScreen I get a JVM error 104.
So let's say you have Screen2 extends MainScreen.
Note that the code above must be executed from within the main Ui event thread. If you're displaying the screen in response to an UI event, this is the default. However, if you're pushing the screen from a background thread, you'll need to marshall the call onto the event thread as follows: