Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 58
Registered: ‎07-09-2009
My Device: Blackberry Bold
Accepted Solution

Screen Stack

Is there a way to switch to a different screen in the stack without popping off the current screen?

 

For example..

 

I'm on [screen 1]

then i push on [screen 2]

but i want to get back to screen one without popping off [screen 2]

 

I know there is a UiApplication.getUiApplication().getActiveScreen().screenBelow() call i can do. But once i get that screen how do I get it to the top of the stack?

 

Thank you.

Developer
Posts: 58
Registered: ‎07-09-2009
My Device: Blackberry Bold

Re: Screen Stack

Got it.
        UiEngine ui = Ui.getUiEngine();
        Screen s = UiApplication.getUiApplication().getActiveScreen().getScreenBelow();
        ui.popScreen( s );
        ui.pushScreen( s );