Reputation: 31
I am working through Android programming tutorials and am trying to learn "Up" navigation. I got it to work by adding setDisplayHomeAsUpEnabled, but when I remove this statement, clean the project and re-deploy, up navigation still works. Why does this happen? I should just see a static, go-nowhere child activity screen, shouldn't I?
Upvotes: 2
Views: 115
Reputation: 3468
Activities are automatically pushed onto a stack, the up/back button naturally pops the stack. Life cycle of Android Activity after pressing Back button
Upvotes: 1