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 r
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
In your AndroidManifest.xml, use this for Activity:
<activity
android:name="Your Activity"
android:excludeFromRecents="true"
android:noHistory="true"
android:taskAffinity="">
</activity>
Add excludeFromRecents="true"
to your activity in AndroidManifest.xml:
<activity android:name=".MainActivity"
android:excludeFromRecents="true" ...
override the onResume
methods in your other Activities and there destroy them and call the main Activity.