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