Android: How do I totally remove an Activity from the Activity Stack?

前端 未结 5 1500
梦毁少年i
梦毁少年i 2021-01-07 02:34

I have two Activities FirstActivity and SecondActivity.

FirstActivity has an intent filter MAIN, LAUNCHER and DEFAULT. SecondActivity is just a normal activity and n

5条回答
  •  滥情空心
    2021-01-07 02:51

    For your main Activity try to set the lauch mode as "singleInstance" in the AndroidManifest file. for second activity set "Finish On Task launch" to true.

提交回复
热议问题