Ejemplo n.º 1
0
  /**
   * Called when the activity is first created
   *
   * @param savedInstanceState
   */
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    activePlatforms = getIntent().getParcelableArrayListExtra(StartActivity.ACTIVE_PLATFORMS);

    developMode = getIntent().getBooleanExtra(DEVELOP_MODE, false);

    setActivityType(ActivityType.ACTIVITY_TYPE_SUB_APP);

    try {

      loadUI(createOrCallSubAppSession());

    } catch (Exception e) {

      // reportUnexpectedUICoreException
      // hacer un enum con areas genericas
      // TODO error manager null
      //  getErrorManager().reportUnexpectedUIException(UISource.ACTIVITY,
      // UnexpectedUIExceptionSeverity.UNSTABLE, FermatException.wrapException(e));
      Toast.makeText(
              getApplicationContext(), "Oooops! recovering from system error", Toast.LENGTH_LONG)
          .show();
    }
  }