Android excludeFromRecents 是否需要任何权限?

标签 android

当我编写 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/

相关文章:

java - Android,如何在 Parcelable 类中正确使用 readTypedList 方法?

android - 如何查找应用程序随时间的电池使用情况?

Android:如何选择多个联系人

android - 按下后退按钮时数据未更新

java - 媒体播放器在 Activity 失去焦点时暂停音乐(当主页或屏幕关闭时)

Android Textview Italic 和 wrap_contents

android - 带障碍的约束布局;如何根据大小限制到障碍的底部/顶部

android - 我可以在 android 2.2 上使用 API 级别 11 吗?

android - 更改微调器箭头,Appcompat v21

android - 使用android ndk编译ffmpeg时如何保持兼容性