Manoj Manoj - 6 months ago 42
Android Question

Android - Remove application from Recent Apps

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.

Answer

In you Manifest.xml, set the following to your Root Activity

<activity
    android:name=".Your_Root_Activity_Name"
    android:excludeFromRecents="true"
    .... 
</activity>

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.

For more information about this: http://developer.android.com/guide/topics/manifest/activity-element.html

Comments