Said activity, we can be said to be familiar with no longer familiar with, first of all, first to a town floor map,
Personally think that Google's picture is better than any other life cycle diagram, say the various life cycle notes:
1:onstart (), activity is visible;
2:oncreate () executes only once in the life cycle;
3:onpause (), activity is in a translucent state, not operable;
4:onstop (), activity is not visible;
5: Most cleanup operations are best done in OnPause () and OnStop, and if you perform a thread operation in OnCreate (), it is best to clean up at OnDestroy ().
When we create a new activity open, the life cycle Goes OnCreate ()-onstart ()-onresume ();
After our home key, the life cycle OnPause ()-onstop ();
Onrestart ()-onstart ()-onresume () when we reopen from the background;
When we press back to return, the life cycle Goes OnPause ()-onstop ()-ondestroy ();
Talking about the activity of Android