Returning from an activity using navigateUpFromSameTask()

If you want your application to react this way, you should declare the launch mode of your activity A as: android:launchMode=”singleTop” in your AndroidManifest.xml. Otherwise android uses standard launch mode, which means “The system always creates a new instance of the activity in the target task” and your activity is recreated (see Android documentation). With … Read more