Android的 - 请从最近的应用程序应用程序 [英] Android - Remove application from Recent Apps
问题描述
我开发一个Android应用程序。如果我收我的申请,我在最近的应用程序列表应用程序可用。现在,我不希望它显示在最近的应用程序。从最近的应用程序列表关闭我的应用程序编程之后,如何才能将其删除。请你能分享你的建议。
I am developing an android application. If I close my application, my app available in the "Recent Apps" List. Now I don't want to show it in "Recent Apps". How can I remove it from "Recent Apps List" after closing my application programmatically. Please can you share your suggestions.
推荐答案
在你的Manifest.xml
,设置以下到您的根系活力的
In you Manifest.xml
, set the following to your Root Activity
<activity
android:name=".Your_Root_Activity_Name"
android:excludeFromRecents="true"
....
</activity>
根据不同的结果,您可能还需要使用安卓noHistory =真正的
属性。但是,不知道是否需要你的情况。
Depending on the results, you might also have to use the android:noHistory="true"
attribute. But not sure if it is required in your case.
有关这方面的信息:<一href="http://developer.android.com/guide/topics/manifest/activity-element.html">http://developer.android.com/guide/topics/manifest/activity-element.html
这篇关于Android的 - 请从最近的应用程序应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!