You're confusing the two UiApplications here. You're extending UiApplication, so you get your own pushScreen function, which is fine. However, invoking that has nothing to do with the screen that is currently being displayed. Thus, to open your screen, you need to get the current UiApp, and push the screen onto the screen stack.
You're running into this issue because you're a menu entry. If you were a normal app, you could call your own pushScreen function, because then you would be the current UiApp being shown to the user.
Did that make sense?
|