Java Code Examples for com.google.android.gms.location.GeofenceStatusCodes#GEOFENCE_TOO_MANY_PENDING_INTENTS

The following examples show how to use com.google.android.gms.location.GeofenceStatusCodes#GEOFENCE_TOO_MANY_PENDING_INTENTS . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GeofenceErrorMessages.java    From react-native-boundary with Apache License 2.0 5 votes vote down vote up
/**
 * Returns the error string for a geofencing error code.
 */
public static String getErrorString(int errorCode) {
    switch (errorCode) {
        case GeofenceStatusCodes.GEOFENCE_NOT_AVAILABLE:
            return "Geofence is not available";
        case GeofenceStatusCodes.GEOFENCE_TOO_MANY_GEOFENCES:
            return "Too many geofences";
        case GeofenceStatusCodes.GEOFENCE_TOO_MANY_PENDING_INTENTS:
            return "Too many pending intents";
        default:
            return "Unknown error: " + Integer.toString(errorCode);
    }
}
 
Example 2
Source File: GeofenceErrorMessages.java    From io2015-codelabs with Apache License 2.0 5 votes vote down vote up
public static String getErrorString(Context context, int errorCode) {
    Resources mResources = context.getResources();
    switch (errorCode) {
        case GeofenceStatusCodes.GEOFENCE_NOT_AVAILABLE:
            return "Geofence service is not available now.";
        case GeofenceStatusCodes.GEOFENCE_TOO_MANY_GEOFENCES:
            return "Your app has registered too many geofences.";
        case GeofenceStatusCodes.GEOFENCE_TOO_MANY_PENDING_INTENTS:
            return "You have provided too many PendingIntents!";
        default:
            return "Unknown error.";
    }
}
 
Example 3
Source File: GeofenceErrorMessages.java    From io2015-codelabs with Apache License 2.0 5 votes vote down vote up
public static String getErrorString(Context context, int errorCode) {
    Resources mResources = context.getResources();
    switch (errorCode) {
        case GeofenceStatusCodes.GEOFENCE_NOT_AVAILABLE:
            return "Geofence service is not available now.";
        case GeofenceStatusCodes.GEOFENCE_TOO_MANY_GEOFENCES:
            return "Your app has registered too many geofences.";
        case GeofenceStatusCodes.GEOFENCE_TOO_MANY_PENDING_INTENTS:
            return "You have provided too many PendingIntents!";
        default:
            return "Unknown error.";
    }
}
 
Example 4
Source File: GeofenceErrorMessages.java    From location-samples with Apache License 2.0 5 votes vote down vote up
/**
 * Returns the error string for a geofencing error code.
 */
public static String getErrorString(Context context, int errorCode) {
    Resources mResources = context.getResources();
    switch (errorCode) {
        case GeofenceStatusCodes.GEOFENCE_NOT_AVAILABLE:
            return mResources.getString(R.string.geofence_not_available);
        case GeofenceStatusCodes.GEOFENCE_TOO_MANY_GEOFENCES:
            return mResources.getString(R.string.geofence_too_many_geofences);
        case GeofenceStatusCodes.GEOFENCE_TOO_MANY_PENDING_INTENTS:
            return mResources.getString(R.string.geofence_too_many_pending_intents);
        default:
            return mResources.getString(R.string.unknown_geofence_error);
    }
}