urbanairship-core/src/main/java/com/urbanairship/CoreReceiver.java
private boolean launchApplication(Context context) {
        Intent launchIntent = context.getPackageManager().getLaunchIntentForPackage(UAirship.getPackageName());
        if (launchIntent != null) {
            launchIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP);
            Logger.info("Starting application's launch intent.");
            context.startActivity(launchIntent);
            return true;
        } else {
            Logger.info("Unable to launch application. Launch intent is unavailable.");
            return false;
        }
    }
/**
     * Helper method that attempts to launch the application's launch intent.
     *
     * @param context The application context.
     */
Helper method that attempts to launch the application's launch intent.
@param context The application context.
Helper method that attempts to launch the application ' s launch intent . @param context The application context .
private boolean launchApplication(Context context) {
        Intent launchIntent = context.getPackageManager().getLaunchIntentForPackage(UAirship.getPackageName());
        if (launchIntent != null) {
            launchIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP);
            Logger.info("Starting application's launch intent.");
            context.startActivity(launchIntent);
            return true;
        } else {
            Logger.info("Unable to launch application. Launch intent is unavailable.");
            return false;
        }
    }
private boolean launchApplication ( Context context ) { Intent launchIntent = context . getPackageManager ( ) . getLaunchIntentForPackage ( UAirship . getPackageName ( ) ) ; if ( launchIntent != null ) { launchIntent . setFlags ( Intent . FLAG_ACTIVITY_NEW_TASK | Intent . FLAG_ACTIVITY_SINGLE_TOP ) ; Logger . info ( "Starting application's launch intent." ) ; context . startActivity ( launchIntent ) ; return true ; } else { Logger . info ( "Unable to launch application. Launch intent is unavailable." ) ; return false ; } }
Helper method that attempts to launch the application's launch intent.
Helper method that attempts to launch the application ' s launch intent .