Activity with Flag FLAG_ACTIVITY_CLEAR_TOP (android)

后端 未结 2 892
醉梦人生
醉梦人生 2021-01-12 22:12

I have stack of activities launched after one another.
but in one of the activity I need to launch that particular activity with flag FLAG_ACTIVITY_CLEAR_TOP

2条回答
  •  温柔的废话
    2021-01-12 22:48

    One solution is to call Activity [B] with flag FLAG_ACTIVITY_CLEAR_TOP, this will destroy all activities but [B]. After that, call Activity [D].

提交回复
热议问题