Activity Status:
1. Operation Status
2. Suspend status
3. Stop state
4. Destruction Status
Lifetime of activity
Seven Callback methods
1, OnCreate ()
2, OnStart ()
3, Onresume ()
4, OnPause ()
5, OnStop ()
6, OnDestroy ()
7, Onrestart ()
Three lifetimes:
1. Full lifetime: OnCreate () and Ondestory ()
2. Visible lifetime: OnStart () and OnStop ()
3. Foreground survival time: Onresume () and OnPause ()
Active startup mode:
1, Standard: Click on any activity will re-create the activity
2, Singletop: When clicked to start the top of the stack activity, will not create a new activity, but if the activity is not at the top of the stack, it will be recreated
3. Singletask: If the activity has already been created, the restart will not be created
4, SingleInstance: Solve the problem of sharing activities
Android activity status, lifetime, startup mode