public static void reportStartupErrorAndExit(final ProcessInitException e){
  Activity activity=ApplicationStatus.getLastTrackedFocusedActivity();
  if (ApplicationStatus.getStateForActivity(activity) == ActivityState.DESTROYED) {
    return;
  }
  InvalidStartupDialog.show(activity,e.getErrorCode());
}

public static void reportStartupErrorAndExit ( final ProcessInitException e ) { Activity activity = ApplicationStatus . getLastTrackedFocusedActivity ( ) ; if ( ApplicationStatus . getStateForActivity ( activity ) == ActivityState . DESTROYED ) { return ; } InvalidStartupDialog . show ( activity , e . getErrorCode ( ) ) ; }
shows an error dialog following a startup error , and then exits the application .
