user2773283
user2773283

Reputation: 31

Up button for low level activities works automatically, why? (setDisplayHomeAsUpEnabled)

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

Answers (1)

Dave S
Dave S

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

Related Questions