此功能是在 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 .
关于java - 将我的应用程序 Activity 实例添加到 Lollipop 上的最近使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29604241/