如何测试以下所有方法代码?我想在所有场景都发生时播放场景,以查看我的代码是否适用于活动的保存/恢复过程。那么我应该在模拟器中做什么来测试所有方法呢?
public class Activity extends ApplicationContext {
protected void onCreate(Bundle savedInstanceState);
protected void onStart();
protected void onRestoreInstanceState(Bundle savedInstanceState);
protected void onSaveInstanceState(Bundle savedInstanceState);
protected void onRestart();
protected void onResume();
protected void onPause();
protected void onStop();
protected void onDestroy();
}