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

后端 未结 6 1430
不知归路
不知归路 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:44

    In your AndroidManifest, in the activity tag, just add

    android:alwaysRetainTaskState="true"
    

提交回复
热议问题