Пример #1
0
  /**
   * *************************************************************************
   *
   * <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);
  }
Пример #2
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   activityState = ActivityState.DESTORY;
   KJLoger.state(this.getClass().getName(), "---------onDestroy ");
 }
Пример #3
0
 @Override
 protected void onRestart() {
   super.onRestart();
   KJLoger.state(this.getClass().getName(), "---------onRestart ");
 }
Пример #4
0
 @Override
 protected void onStop() {
   super.onStop();
   activityState = ActivityState.STOP;
   KJLoger.state(this.getClass().getName(), "---------onStop ");
 }
Пример #5
0
 @Override
 protected void onPause() {
   super.onPause();
   activityState = ActivityState.PAUSE;
   KJLoger.state(this.getClass().getName(), "---------onPause ");
 }
Пример #6
0
 @Override
 protected void onResume() {
   super.onResume();
   activityState = ActivityState.RESUME;
   KJLoger.state(this.getClass().getName(), "---------onResume ");
 }