gpt4 book ai didi

Android excludeFromRecents 是否需要任何权限?

转载 作者:行者123 更新时间:2023-11-29 01:55:15 24 4
gpt4 key购买 nike

当我编写 android:excludeFromRecents="true"android:noHistory="true" 时,它不会禁用 Android 4.0+ 平板电脑上的最新应用程序。它是否需要任何权限或 minSdkVersion 或其他东西?

最佳答案

When I write android:excludeFromRecents="true" or android:noHistory="true", it doesn't disable recent apps on Android 4.0+ tablets.

两者都不应该“禁用最近的应用程序”。

android:excludeFromRecents="true" , 在 <activity> 上定义这将构成任务的根,will prevent that activity's task from appearing in the recent-tasks list .

android:noHistory="true"意味着 the activity is finish() -ed whenever the user leaves it , 通过任何机制。

关于Android excludeFromRecents 是否需要任何权限?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15550333/

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