Depending on the life cycle of the android activity, when you run action A:
List of life cycle methods:
Activity A.onResume(); Activity A.onStart(); Activity A.onCreate();
Activity Status:
Activity A : Resumed
When you run action B now:
List of life cycle methods:
Activity A.onStop(); Activity B.onResume(); Activity B.onStart(); Activity B.onCreate(); Activity A.onPause(); ... ... ...
Activity Status:
Activity A : Stopped Activity B : Resumed
And when you run A again now:
List of life cycle methods:
Activity B.onDestroy(); Activity B.onStop(); Activity A.onResume(); .... .... ....
Activity Status:
Activity B : Destroyed Activity A : Resumed
This is the life cycle of an activity: 
Here you can find the details.
According to the default behavior, activity A goes into onStop () state and is inactive and needs to create a new instance when returning to activity A. All I know is that there is no way to save instance A,
Kaidul Islam
source share