Android中生命周期方法有OnCreate()、OnStart()、OnReStart()、OnReSume()、OnPause()、OnStop()、OnDestroy(),一下是Activity的状态转换时相相应运行的方法的转换图