When a user presses the back button on an intent, the application should quit. How can I ensure the application quits when the back button is pressed?
To exit from an Android app, just simply use. in your Main Activity, or you can use Android manifest file to set
android:noHistory="true"