1. Check out our companion app, Forums for Android! Download from Google Play

how to call already created screen?

Discussion in 'Application Development' started by devdattac, Jan 14, 2009.

  1. devdattac

    devdattac New Member
    Thread Starter
    5

    Jan 2, 2009
    2
    0
    5
    Software Developer
    Pune
    Hi All,
    I am new to android programming and want to develop an application which is a multi screen application . I have 4 screens A,B,C,D .
    B is started by calling startactivity(intent_B) defined in class A button click and c is calling by startactivity(intent_C) defined in class B and so on. Now I want to navigate from screen D to A . A screen is already created .
    flow of screen should be A->B->C->D->A.
    How should i achieve this?
    Please help me ASAP...
    thanx..
     

    Advertisement

  2. Sundog

    Sundog Well-Known Member
    36

    Oct 21, 2008
    66
    3
    36
    If this is the only navigation path required for these activities, simply having D and C call finish() in their onResume methods should do it, no? D calls finish() and will pop back up to C which will die and pop back up to B which will also die and give the screen back to A.

    Since it's a stack, you need to do something like this, I think.
     
  3. AndroidDeveloper

    5

    Mar 9, 2009
    7
    0
    5
    I too looking for the same. could any one help how to naviage ? Say for an example link or button contains HOME, NEXT, PREVIOUS, LAST. Any examples available please elt me know.
     

Share This Page

Loading...