java - 从任务管理器中隐藏 Android 应用程序

标签 java android taskmanager

<分区>

有没有办法从 Android 4 默认任务管理器中隐藏 android 应用程序

我不希望用户在列表中看到我的应用

有什么想法吗?

最佳答案

将此添加到 list 文件中 Activity 的 Activity 标签,您不想在最近的应用程序列表中显示:

android:excludeFromRecents="true"

Documentation :

Whether or not the task initiated by this activity should be excluded from the list of recently used applications ("recent apps"). That is, when this activity is the root activity of a new task, this attribute determines whether the task should not appear in the list of recent apps. Set "true" if the task should be excluded from the list; set "false" if it should be included. The default value is "false".

关于java - 从任务管理器中隐藏 Android 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18796015/

相关文章:

java - 为什么我的哈希集包含重复项?

android - 比较 SQLite 中的 Double NOT 字符串值

c# - 简单的 C# WinForm 应用程序在 Visual Studio 中显示有 3 个线程。任务管理器显示 14-16 个线程。为什么?

powershell - 使用Powershell Windows 2008导出特定进程

java - 在 SockJS 和 Tomcat 上使用 STOMP 的 Spring 没有升级到 Websockets

Java - 如何验证不允许的字符?

java - 语音识别游戏

android - 按钮上的奇怪异常

java - 先执行服务器调用,然后执行下一行代码

c# - 如何恢复未正确释放的 COM 对象?