隐藏在长期preSS-HOME键,菜单Android应用程序 [英] Hide android application in long-press-HOME-button-menu

查看:99
本文介绍了隐藏在长期preSS-HOME键,菜单Android应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想隐藏我的(也是唯一的),当长时间按住HOME键就完成之后出现的菜单中的Andr​​oid应用程序。有没有办法做到这一点?调用完成()编程不这样做的伎俩。

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

推荐答案

添加安卓excludeFromRecents =真正的任何<活性GT; 在清单中的不应该出现在近期任务列表中的任何活动内容。

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

这篇关于隐藏在长期preSS-HOME键,菜单Android应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆