How to kill sub activities and bring activity to top of stack

后端 未结 1 1346
执笔经年
执笔经年 2020-11-29 09:43

I have activity A that starts activity B which starts activity C:

A -> B -> C

When a user clicks on a button in activity C, I want to bring A to the top of t

相关标签:
1条回答
  • 2020-11-29 10:25

    You can use the FLAG_ACTIVITY_CLEAR_TOP flag on the intent to restart activity A.

    0 讨论(0)
提交回复
热议问题