Exemple #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);
  }
Exemple #2
0
 @Override
 public void onBackPressed() {
   super.onBackPressed();
   overridePendingTransition(R.anim.in_from_left, R.anim.out_to_right);
 }
Exemple #3
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   activityState = ActivityState.DESTORY;
   KJLoger.state(this.getClass().getName(), "---------onDestroy ");
 }
Exemple #4
0
 @Override
 protected void onRestart() {
   super.onRestart();
   KJLoger.state(this.getClass().getName(), "---------onRestart ");
 }
Exemple #5
0
 @Override
 protected void onStop() {
   super.onStop();
   activityState = ActivityState.STOP;
   KJLoger.state(this.getClass().getName(), "---------onStop ");
 }
Exemple #6
0
 @Override
 protected void onPause() {
   super.onPause();
   activityState = ActivityState.PAUSE;
   KJLoger.state(this.getClass().getName(), "---------onPause ");
 }
Exemple #7
0
 @Override
 protected void onResume() {
   super.onResume();
   activityState = ActivityState.RESUME;
   KJLoger.state(this.getClass().getName(), "---------onResume ");
 }