gpt4 book ai didi

android - singleTask 和 singleInstance 的区别

转载 作者:IT老高 更新时间:2023-10-28 22:20:06 28 4
gpt4 key购买 nike

我在 StackOverflow 上没有找到任何可以回答我问题的帖子。我已经看过了Android singletop singleinstance and singletask但这个问题和他的项目场景有关。

singleTask 和 singleInstance 有什么区别??我已阅读文档但无法理解..

我也读过这个帖子 Android singleTask or singleInstance launch mode?但我无法理解。对不起

最佳答案

docs 中不清楚的地方?

The "singleTask" and "singleInstance" modes also differ from each other in only one respect: A "singleTask" activity allows other activities to be part of its task. It's always at the root of its task, but other activities (necessarily "standard" and "singleTop" activities) can be launched into that task. 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 — as if FLAG_ACTIVITY_NEW_TASK was in the intent.

关于android - singleTask 和 singleInstance 的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23033550/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com