Exemplo n.º 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);
  }
Exemplo n.º 2
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   activityState = ActivityState.DESTORY;
   KJLoger.state(this.getClass().getName(), "---------onDestroy ");
 }
Exemplo n.º 3
0
 @Override
 protected void onRestart() {
   super.onRestart();
   KJLoger.state(this.getClass().getName(), "---------onRestart ");
 }
Exemplo n.º 4
0
 @Override
 protected void onStop() {
   super.onStop();
   activityState = ActivityState.STOP;
   KJLoger.state(this.getClass().getName(), "---------onStop ");
 }
Exemplo n.º 5
0
 @Override
 protected void onPause() {
   super.onPause();
   activityState = ActivityState.PAUSE;
   KJLoger.state(this.getClass().getName(), "---------onPause ");
 }
Exemplo n.º 6
0
 @Override
 protected void onResume() {
   super.onResume();
   activityState = ActivityState.RESUME;
   KJLoger.state(this.getClass().getName(), "---------onResume ");
 }