I am trying to Understand what is a back stack concept in Android
What i have tried to learn: I went through the Developer site
- what i could learn is that, back stack is the one concept that differs fragment lifecycle from regular activity life cycle
- When the activity is placed to back-stack of activities, the user can navigate back to previous activity by just pressing the back button
My question::
- Does this mean i can add
activity1
- -activity2
- -activity3
.... thenactivity3
is at top of the back stack so if i press back button .... I go fromactivity3
- - to - -activity2
...... then again i go fromactivity2
- -activity1
finally - What more can i add for my learning ?
[EDIT]
- Also i remember using finish() to navigate back in regular activity life cycle
- Does this mean that regular activity life cycle also has back stack ..... if no ?
- How different is back stack from using a finish() in regular activity life cycle