Hide Android App from Task manager [duplicate]

我与影子孤独终老i 提交于 2020-12-06 03:50:21

问题


is there is a way to hide android app from Android 4 default task manager

i don't want the user to see my app in the list

any ideas ?


回答1:


Add this to the Activity tag of the Activity in Manifest file, that you don't want to show up in the recent apps list:

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".



来源:https://stackoverflow.com/questions/18796015/hide-android-app-from-task-manager

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!