@Override
  protected void onCreate(Bundle savedInstanceState) {
    if (willFinishFalseRootActivity(savedInstanceState)) {
      return;
    }

    if (checkInvalidLaunch(savedInstanceState)) {
      // Android bug 2373 detected and we're going to restart.
      return;
    }

    TiApplication tiApp = getTiApp();

    startedFromBoot = getIntentBoolean(TiC.INTENT_PROPERTY_ON_BOOT, false);

    if (tiApp.isRestartPending()
        || TiBaseActivity.isUnsupportedReLaunch(this, savedInstanceState)) {
      super.onCreate(savedInstanceState); // Will take care of scheduling restart and finishing.
      return;
    }

    tiApp.setCurrentActivity(this, this);

    Log.checkpoint(
        TAG, "checkpoint, on root activity create, savedInstanceState: " + savedInstanceState);

    tiApp.setRootActivity(this);

    super.onCreate(savedInstanceState);

    tiApp.verifyCustomModules(this);
  }
 @Override
 protected void onResume() {
   Log.checkpoint(TAG, "checkpoint, on root activity resume. activity = " + this);
   super.onResume();
 }