Top "Activity-finish" questions

How to destroy previous activity in Activity?

I have four activity, i.e. A, B, C and D. A launches B, B launches C, C launches D. …

android android-activity destroy activity-finish
How to finish Main Activity onBackPressed?

I am setting themes to my application. Themes are getting set well. I have two activities on is main activity …

java android android-activity activity-finish onbackpressed
Android - Shared element transitions with calling activity finish()

I'm working on making an application more Material and I'm just stuck on how to implement some shared element transitions. …

java android android-5.0-lollipop activity-finish shared-element-transition
What method is being called when I close an app

I read all about the activity lifecycle and it's methods. I still couldt find an answer: When I close my …

android android-activity activity-finish
Finishactivity doesn't finish the activity?

I'm trying to get my activity to close and return with the result, I do have onActivityResult in my parent …

android activity-finish
activity not calling onDestroy() after finish()

I have three activities, let's call them ONE, TWO and THREE. From activity ONE, a button press starts activity TWO. …

android onresume activity-finish
How to finish every activity on the stack except the first in Android

I'm porting an iPhone app to Android and I can't seem to find a means to pop each activity on …

android activity-finish
Exit completely from android app

I want to exit entire app by clicking exit button. Actually I am using exit button instead of log-out. So …

android exit logout activity-finish
Android : startActivityForResult() with BACK button functionality

I would like to start a new activity for a result, with startActvityForResult(), but I would like to have the …

java android android-activity activity-finish
finish the Dialog and Activity

I have a activity which start with a alertdialog when i press back button only dialog get close. I want …

android android-alertdialog activity-finish