01-19-2010 03:52 AM
you can retrieve the active screen and use popscreen while it is not null. or rework your code not to show that many screens.
01-19-2010 03:53 AM
You could query your UiApplication or UiEngine for the top-most screen (getActiveScreen()), pop that screen off the display stack. Repeat this until getActiveScreen() returns null.
01-19-2010 07:21 AM
Thanks Simon_hain and klyubin for ur replys,
That means i need to pop the screen by calling getActiveScreen() until it returns the null.
Is there any alternative method available to flush all screen from stack at once??, i have searched all apis but i couldnt able to get may be rim has not provided yet.
i think, i need to go by ur suggestions to clear the stack.
07-28-2010 01:49 AM
you can also use this to pop all the screens from the stack.
07-28-2010 03:01 AM
i also required such functionality but i also followed the same style of popping out the screen
inside a loop i tested the condition that till my active screen gets equal to home screen it will continue popping the screens
so that i dont run out of screens