When you use an App on your Android Device I am sure you press the back button pretty often. Which in turn takes you to the previous Screen.
This happens because of the Back Stack which maintains a history of places you have visited.
Each visit is a transaction. So the back stack essentially keeps an eye on all the transactions. Using the back stack effectively can lead to to a good user experience.
A transaction can be moving from one Activity to another or from one Fragment to another. So if the user wants to go back to the previous Activity or Fragment
the Back Button will enable that action.
How this concept applies to our App we will discover in the next Article.
Read the Android Documentation to explore this further.
3 thoughts on “What is Back Stack and Why it’s Important”