Hide android application in long-press-HOME-button-menu

╄→гoц情女王★ 提交于 2019-12-06 07:02:02

问题


I want to hide my android app from (and only from) the menu that appears when long holding the HOME-button after it is finished. Is there a way to do that? Calling finish() programatically dont do the trick.

There are many threads about hiding an app from the launcher and taskmanager, but this is not what I want, I simply dont want it to show up in this "app history".

best regards Sebastian


回答1:


Add android:excludeFromRecents="true" to any <activity> element in the manifest for any activity that should not appear in the recent tasks list.



来源:https://stackoverflow.com/questions/9645159/hide-android-application-in-long-press-home-button-menu

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