Android 程序应用的生命周期
内容摘要
程序应用步骤:
打开应用:onCreateonStartonResume
BACK键:onPauseonStoponDestory
HOME键:onPauseonStop再次启动应用:onRestartonStartonResume
打开应用:onCreateonStartonResume
BACK键:onPauseonStoponDestory
HOME键:onPauseonStop再次启动应用:onRestartonStartonResume
文章正文
程序应用步骤:
打开应用:
onCreate
onStart
onResume
BACK键:
onPause
onStop
onDestory
HOME键:
onPause
onStop
再次启动应用:
onRestart
onStart
onResume
代码注释