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" ... />
More Related Contents:
- Activity stack ordering problem when launching application from Android app installer and from Home screen
- Android Shared preferences for creating one time activity (example) [closed]
- Android – How To Override the “Back” button so it doesn’t Finish() my Activity?
- Android- Going back to Previous Activity with different Intent value
- Android app out of memory issues – tried everything and still at a loss
- Finish an activity from another activity
- How do I get the height and width of the Android Navigation Bar programmatically?
- Finish all activities at a time
- How to switch activity without animation in Android?
- onActivityResult() called prematurely
- Accessing SharedPreferences through static methods
- Android: Activity getting Destroyed after calling Camera Intent
- TextWatcher for more than one EditText
- Returning from an activity using navigateUpFromSameTask()
- One Activity and all other Fragments [closed]
- Android webview loading data performance very slow
- How to kill sub activities and bring activity to top of stack
- View the Task’s activity stack
- Android PagerView between Activities
- android: using ActivityGroup to embed activities
- Shared preferences for creating one time activity
- How to send objects through bundle
- Android checking whether the app is closed
- How to test code built to save/restore Lifecycle of an Activity?
- How to use view flipper with three layouts?
- Sending Activity to background without finishing
- Android: how to create a transparent dialog-themed activity
- onActivityResult not call in the Fragment
- How can I send result data from Broadcast Receiver to Activity
- How to update the UI of Activity from BroadCastReceiver