Top "Activity-finish" questions

Android: How to know if an activity is finished?

I'm working on an app that plays mp3 files automatically and in succession from within a given activity. it knows …

android activity-finish
Finish activity in dialog class

In my MainActivity I call MyDialog dialog = new MyDialog(MainActivity.this); dialog.show(); MyDialog is my own class where I …

android dialog activity-finish
Angular js - detect when all $http() have finished

Ok i have tons of $http() calls all around the app code, i'm wondering is there any way / best practice …

javascript angularjs http detect activity-finish
Android - How to end a Fragment

In my application I have a navigation drawer, and the way my app works is there is only one activity …

java android android-fragments onpause activity-finish
finish activity in onActivityResult does not work

I have a pair of activities that must live or die together. Basically AlphaActivity does some work and then dispatches …

android android-intent android-activity back activity-finish
How to finish() an Activity when Home button pressed

For a complicated reason I need to be able to finish() my activities when the user presses the HOME button. …

android android-activity activity-finish
Android: When to end class with finish()?

I often see examples of classes which end with finish(), but definitely not always. My question is when should you …

java android class activity-finish
alternative to finish() method for Service class? To kill it dead

I have used the method finish() before in several activities without problems. however when I tried to call it inside …

android service kill activity-finish
Is it a good idea to call finish() after starting a new Activity in Android?

Like: startActivity(intent); finish(); Without calling finish() explicitly, onDestroy() is not called for the former Activity, and I run out …

android android-intent out-of-memory activity-finish
Finish activity from another activity

I have 3 activities A, B and C. A leads to B which leads to C. I would like to be …

android android-activity activity-finish