I'm currently learning the Activity Lifecyle. I noticed the following:
- I have two Activitys, A and B.
- When I open Activity B from Activity A, A gets stopped and B gets created and started.
- When I press the Back Button on my device, B gets destroyed and A get restarted.
- But when I use the Back / Up Botton of the Actionbar instead, B gets destroyed, A gets destroyed and then onCreate() is called.
Why gets A destroyed instead of restarted, when using the Up Botton in the ActionBar?
I hope my question is clear, if not please comment.