/** * ************************************************************************* * * <p>print Activity callback methods * * <p>************************************************************************* */ @Override protected void onCreate(Bundle savedInstanceState) { aty = this; KJLoger.state(this.getClass().getName(), "---------onCreat "); switch (orientation) { case HORIZONTAL: setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); break; case VERTICAL: setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); break; case AUTO: setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_USER); break; } if (mHiddenActionBar) { requestWindowFeature(Window.FEATURE_NO_TITLE); } if (mAllowFullScreen) { getWindow() .setFlags( WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); } super.onCreate(savedInstanceState); }
@Override protected void onDestroy() { super.onDestroy(); activityState = ActivityState.DESTORY; KJLoger.state(this.getClass().getName(), "---------onDestroy "); }
@Override protected void onRestart() { super.onRestart(); KJLoger.state(this.getClass().getName(), "---------onRestart "); }
@Override protected void onStop() { super.onStop(); activityState = ActivityState.STOP; KJLoger.state(this.getClass().getName(), "---------onStop "); }
@Override protected void onPause() { super.onPause(); activityState = ActivityState.PAUSE; KJLoger.state(this.getClass().getName(), "---------onPause "); }
@Override protected void onResume() { super.onResume(); activityState = ActivityState.RESUME; KJLoger.state(this.getClass().getName(), "---------onResume "); }