How to clear the stack

Hi friends,

I have a small doubt

here in my application I'm just pushing the screens I'm not poping up screens.

Here, I want to keep that one version of data not multiple versions of the data

That's why I push screens here I am pressing back I go to the previous screen that was stored in the stack. I want this fun.that why I'm not poping up screens.

so I want to burst the screens not set screens.

example:

I'm open to a single screen 5 times

I want to blow this screen 3 times not all (that form only).

is it possible then to give me the idea.

Please help me it is urgent.

Thank you

Here is a code example.  This would be a method of your screen and will be called if you want to go to a new screen, but do not let the current screen on the stack.

{} public void swapToScreen (next screen)

UiApplication.getUiApplication () .pushScreen (nextScreen);

UiApplication.getUiApplication.popScreen (this);

}

Code of Kiran_b seems fine for what it is, which is a way to erase the current stack.  You said

"it does not.

This unfortunately isn't a description of the problem very useful is?  How about explaining what you did, what happened, and what you expected more in detail.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for