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