You can use finish() method or you can use:
android:noHistory="true"
And then there is no need to call finish() anymore.
<activity android:name=".ClassName" android:noHistory="true" ... />
You can use finish() method or you can use:
android:noHistory="true"
And then there is no need to call finish() anymore.
<activity android:name=".ClassName" android:noHistory="true" ... />