urbanairship-core/src/main/java/com/urbanairship/google/PlayServicesUtils.java
public static void handleAnyPlayServicesError(@NonNull Context context) {
        if (!isGooglePlayServicesDependencyAvailable()) {
            return;
        }

        int errorCode;

        try {
            errorCode = GooglePlayServicesUtilWrapper.isGooglePlayServicesAvailable(context);
        } catch (IllegalStateException e) {
            Logger.error("Google Play services developer error: " + e.getMessage());
            return;
        }

        if (errorCode == CONNECTION_SUCCESS) {
            return;
        }

        if (GooglePlayServicesUtilWrapper.isUserRecoverableError(errorCode)) {
            Logger.debug("Launching Play Services Activity to resolve error.");
            try {
                context.startActivity(new Intent(context, PlayServicesErrorActivity.class));
            } catch (ActivityNotFoundException e) {
                Logger.error(e.getMessage());
            }
        } else {
            Logger.info("Error " + errorCode + " is not user recoverable.");
        }
    }
/**
     * Checks and handles any user recoverable Google Play services errors.
     * <p/>
     * </p>
     * If a user recoverable error is encountered, a {@link com.urbanairship.google.PlayServicesErrorActivity}
     * will be launched to display any resolution dialog provided by Google Play
     * services.
     *
     * @param context The application context.
     */
Checks and handles any user recoverable Google Play services errors.


If a user recoverable error is encountered, a  com.urbanairship.google.PlayServicesErrorActivity
will be launched to display any resolution dialog provided by Google Play
services.

@param context The application context.
Checks and handles any user recoverable Google Play services errors . If a user recoverable error is encountered a com . urbanairship . google . PlayServicesErrorActivity will be launched to display any resolution dialog provided by Google Play services . @param context The application context .
public static void handleAnyPlayServicesError(@NonNull Context context) {
        if (!isGooglePlayServicesDependencyAvailable()) {
            return;
        }
        int errorCode;
        try {
            errorCode = GooglePlayServicesUtilWrapper.isGooglePlayServicesAvailable(context);
        } catch (IllegalStateException e) {
            Logger.error("Google Play services developer error: " + e.getMessage());
            return;
        }
        if (errorCode == CONNECTION_SUCCESS) {
            return;
        }
        if (GooglePlayServicesUtilWrapper.isUserRecoverableError(errorCode)) {
            Logger.debug("Launching Play Services Activity to resolve error.");
            try {
                context.startActivity(new Intent(context, PlayServicesErrorActivity.class));
            } catch (ActivityNotFoundException e) {
                Logger.error(e.getMessage());
            }
        } else {
            Logger.info("Error " + errorCode + " is not user recoverable.");
        }
    }
public static void handleAnyPlayServicesError ( @ NonNull Context context ) { if ( ! isGooglePlayServicesDependencyAvailable ( ) ) { return ; } int errorCode ; try { errorCode = GooglePlayServicesUtilWrapper . isGooglePlayServicesAvailable ( context ) ; } catch ( IllegalStateException e ) { Logger . error ( "Google Play services developer error: " + e . getMessage ( ) ) ; return ; } if ( errorCode == CONNECTION_SUCCESS ) { return ; } if ( GooglePlayServicesUtilWrapper . isUserRecoverableError ( errorCode ) ) { Logger . debug ( "Launching Play Services Activity to resolve error." ) ; try { context . startActivity ( new Intent ( context , PlayServicesErrorActivity . class ) ) ; } catch ( ActivityNotFoundException e ) { Logger . error ( e . getMessage ( ) ) ; } } else { Logger . info ( "Error " + errorCode + " is not user recoverable." ) ; } }
Checks and handles any user recoverable Google Play services errors.
Checks and handles any user recoverable Google Play services errors .