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