Skip to content

Android android:noHistory

ythy edited this page Nov 15, 2017 · 1 revision

Use android:noHistory="true"

<activity android:name=".activity.MediaActivity"
            android:noHistory="true"
</activity>

Whether or not the activity should be removed from the activity stack and finished (its finish() method called) when the user navigates away from it and it's no longer visible on screen — "true" if it should be finished, and "false" if not. The default value is "false". A value of "true" means that the activity will not leave a historical trace. It will not remain in the activity stack for the task, so the user will not be able to return to it.

Clone this wiki locally