I have one central MainCheckerActivity which checks if all the settings are OK. This MainCheckerActivity is being called by many activities A,B,C,..
If the MainCheckerActivity finds that some settings are missing it shows a dialog and (currently) finishes so the flow returns to the calling activity A,B,C…
Then the user has to manually navigate to the SettingsActivity from A,B,C…
So basically now:
A -> MainCheckerActivity -> shows the dialog -> finishes MainCheckerActivity -> A -> SettingsActivity
How would I implement a logic flow which is more convenient for the user like this:
A -> MainCheckerActivity -> shows the dialog -> finishes MainCheckerActivity -> SettingsActivity -> A
Many thanks!
If you start the MainCheckerActivity with
Intent.FLAG_ACTIVITY_NO_HISTORY, then it will not be kept in the history stack of the task. If MainCheckerActivity launches the SettingsActivity, when the user clicks “back” in the SettingsActivity he will return to the activity that started MainCheckerActivity (ie: either A, B, or C from your description).