gpt4 book ai didi

java - 将我的应用程序 Activity 实例添加到 Lollipop 上的最近使用

转载 作者:行者123 更新时间:2023-11-29 20:49:14 25 4
gpt4 key购买 nike

此功能是在 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/

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