Android: open activity without save into the stack

前端 未结 10 1908
暗喜
暗喜 2020-11-27 04:19

I have 2 activities: Main and List.

From Main you can open List; from List you can open Main.

I\'d like it so that every opening of List does not

10条回答
  •  [愿得一人]
    2020-11-27 05:02

    In the manifest file add:

    android:noHistory="true" 
    

    to the activity that you don't want to keep on the stack.

提交回复
热议问题