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

后端 未结 1 1372
执笔经年
执笔经年 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)
提交回复
热议问题