Activity的生命周期

// 销毁
	protected void onDestroy() {
		System.out.println("onDestroy");
		super.onDestroy();
	}

	// 暂停
	protected void onPause() {
		System.out.println("onPause");
		super.onPause();
	}

	// 重新启动
	protected void onRestart() {
		System.out.println("onRestart");
		super.onRestart();
	}

	// Resume
	protected void onResume() {
		System.out.println("onResume");
		super.onResume();
	}

 

你可能感兴趣的:(Activity)