Android: keep task's activity stack after restart from HOME

前端 未结 3 1174
野的像风
野的像风 2020-12-01 13:05

My application has two activities, that I start in this order:

HOME > A > B

Now I press HOME and launch \"A\" again. I would like to

3条回答
  •  醉酒成梦
    2020-12-01 13:42

    It's not that complex. You just need to manipulate the manifest.

    AndroidManifest.xm

    Read about the 'android:exported' & 'android:alwaysRetainTaskState' here:

    android:exported

    android:alwaysRetainTaskState

提交回复
热议问题