Android: Launch mode 'single instance'

后端 未结 2 988
礼貌的吻别
礼貌的吻别 2021-02-05 11:46

I was going through the documentation for single instance and was trying out few samples. In one of my sample I have three activities: A->B->C , where B has android:launchMo

2条回答
  •  不知归路
    2021-02-05 12:00

    From the doc

    1. "singleInstance" activities can only begin a task. They are always at the root of the activity stack. Moreover, the device can hold only one instance of the activity at a time — only one such task.

    2. A "singleInstance" activity, on the other hand, permits no other activities to be part of its task. It's the only activity in the task. If it starts another activity, that activity is assigned to a different task

提交回复
热议问题