Here are some functions will be call in a activity’s life cycle:
it will be called when a activity be created.
when activity be visibled.
when the activity get the focus.(that’s mean it’s view can response u)
when the activity loss the focus
when the activity can’t be visibled
when the activity be destroeid