To summarize the default behavior for activities and tasks:
- When activity a starts activity B, activity A was stopped, but the system retains it state (such as scroll position and TE XT entered into forms). If the user presses the back button and the activity B, activity A resumes with its state restored.
- When the user leaves a task by pressing the Home button, the current activity was stopped and its task goes into T He background. The system retains the state of every activity in the task. If the user later resumes the task by selecting the launcher icon This began the task, the task comes to the foreground an D resumes the activity at the top of the stack.
- If the user presses the back button, the current activity was popped from the stack and destroyed. The previous activity in the stack is resumed. When a activity is destroyed, the system does not retain the activity's state.
- Activities can instantiated multiple times, even from other tasks.
Android Activity,back Stack Management