我一直在阅读关于任务、返回栈和概览屏幕的文档,有一件事情让我非常困惑。在阅读了这里的
两者都被描述为提供控制启动新Activity在相对于当前任务(启动Activity的任务)中的方式。那么这两种模式有什么不同?附加的-document 是什么意思?
以下是直接指的它们在清单文件中使用的文档: LaunchMode: http://developer.android.com/guide/topics/manifest/activity-element.html#lmode
DocumentLaunchMode: http://developer.android.com/guide/topics/manifest/activity-element.html#dlmode
launchMode
: http://developer.android.com/guide/components/tasks-and-back-stack.html 和这里的documentLaunchMode
: http://developer.android.com/guide/components/recents.html 之后,我无法确定它们有什么区别!两者都被描述为提供控制启动新Activity在相对于当前任务(启动Activity的任务)中的方式。那么这两种模式有什么不同?附加的-document 是什么意思?
以下是直接指的它们在清单文件中使用的文档: LaunchMode: http://developer.android.com/guide/topics/manifest/activity-element.html#lmode
DocumentLaunchMode: http://developer.android.com/guide/topics/manifest/activity-element.html#dlmode