Android activity‘s life cycle

Here are some functions will be call in a activity‘s life cycle:

1.oncreate():

it will be called when a activity be created.

2.onstart()

when activity be visibled.

3.onresume()

when the activity get the focus.(that‘s mean it‘s view can response u)

4.onpause

when the activity loss the focus

5.onstop

when the activity can‘t be visibled

6.ondestrory

when the activity be destroeid


Android activity‘s life cycle,布布扣,bubuko.com

Android activity‘s life cycle

上一篇:ubuntu 12.04 上C / C++, OpenGL, Android, NDK,Ogre环境配置


下一篇:【玩转cocos2d-x之三十八】如何使用NDK-STACK tool来恢复Cocos2d-x安卓错误堆栈信息