Activity_ life cycle

Activity base class defines a series of events for the life cycle management activities. It defines the following events:
● onCreate () - Called when the activity is first loaded
● onStart () - Called when the activity visible to the user
● onResume () - Called when the activity began to interact with the user
● onPause () - called when the current activities suspended, while activity continued on a
● onStop () - Called when the activity is not visible to the user
● onDestroy () - is the destruction of the system (manual or automatic destruction destruction) to free the memory before the call activity
● onRestart () - Called when the activity stops and starts again
By default, created activities will include onCreate () event. In the event handler is used to display
Code screen UI elements

Reproduced in: https: //my.oschina.net/dminter/blog/205038

Guess you like

Origin blog.csdn.net/weixin_34249367/article/details/91888772