After Home button press re-launching app shows initial activity not current

后端 未结 6 1439
不知归路
不知归路 2021-01-04 04:12

I have an application that has an initial activity (A - also the one specified in the launcher) from which it allows the user to launch another activity (B). I am saving the

6条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-04 04:41

    I found an easy one line solution for this problem

    add this line in activity tag in Manifest

    android:launchMode="singleInstance"
    

提交回复
热议问题