Android – remove apps from recent apps
•
Android
I'm developing an android app. If I close my app, my app will be available in the recent apps list. Now I don't want to display it in the recent apps list. How to programmatically close my app and how to remove it from the recent apps list. Please share your suggestions
resolvent:
In manifest.xml, set the following as the root activity
<activity
android:name=".Your_Root_Activity_Name"
android:excludeFromRecents="true"
....
</activity>
Depending on the result, you may also have to use the Android: nohistory = "true" attribute. But you're not sure if you need it in your case
More about this: http://developer.android.com/guide/topics/manifest/activity-element.html
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码