• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps how to call already created screen?

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..
 
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..

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.
 
Upvote 0
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..

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.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones