07-22-2010 03:47 PM
I having totally three screen.
from first to second screen is possible and second to third screen also possible.
But, is it possible to comeback from three to first screen directly.
07-22-2010 05:41 PM
I guess you could pop the 1st screen, then repush it.
Understand that the screen handling is a stack-based structure in Blackberry. When you push ScreenA, then push ScreenB, ScreenA is still "alive", just not currently displayed. When you pop ScreenB, ScreenA is now displayed for you, since it is the "top" display on the stack.
07-22-2010 06:21 PM - edited 07-22-2010 06:25 PM
Just to elaborate a bit on RexDoug's reply: the display stack isn't a stack in the same sense as a Stack data structure. In particular, you can "pop" screens that are not on top of the stack. What RexDoug is suggesting is that you can check, using isDisplayed(), whether a screen is already on the display stack, pop it if necessary, and then push it onto the stack where it will become the top visible screen.
Isn't this a repeat of the question in this thread?