将我的应用 activity 个实例添加到 Lollipop 上的最近使用
Add my app activity instances to recents on Lollipop
Lollipop 的 Chrome 中引入了此功能。 Chrome 的选项卡可以由 Lollipop 最近列表管理。
如何在我自己的应用中实现类似的功能?这个有新的api吗?
Overview Screen AKA Recent Tasks
With the Android 5.0 release (API level 21), multiple instances of the same activity containing different documents may appear as tasks in the overview screen.
在 API 21 中,他们添加了 FLAG_ACTIVITY_NEW_DOCUMENT
来实现这一点。
Through the use of this flag, or its equivalent attribute, documentLaunchMode multiple instances of the same activity containing different documents will appear in the recent tasks list.
用法见here。
Lollipop 的 Chrome 中引入了此功能。 Chrome 的选项卡可以由 Lollipop 最近列表管理。
如何在我自己的应用中实现类似的功能?这个有新的api吗?
Overview Screen AKA Recent Tasks
With the Android 5.0 release (API level 21), multiple instances of the same activity containing different documents may appear as tasks in the overview screen.
在 API 21 中,他们添加了 FLAG_ACTIVITY_NEW_DOCUMENT
来实现这一点。
Through the use of this flag, or its equivalent attribute, documentLaunchMode multiple instances of the same activity containing different documents will appear in the recent tasks list.
用法见here。