I'm trying to use the built-in menus and confirmation dialog to implement resume/save/discard functionality. I have this working for the most part, but I do have one issue. If, when the resume/save/discard menu is presented, the user selects Discard, and when the confirmation dialog is presented, they select Yes, I want to get out of the menu completely. Technically, I want to exit the application.
In the simulator, calling Ui.popView(Ui.SLIDE_IMMEDIATE) for every menu in the stack seems to work just fine. On the device (a fr920xt) the additional popView() calls don't appear to do anything (when confirming the discard you end up at the resume/save/discard menu).
Does anyone know how to handle this? Am I trying to work around a ConnectIQ bug specific to the 920? Is what I'm trying to do just not supported by the menus?
Travis