Code example for LocationClient

Methods: addGeofences

0
			// Get the PendingIntent for the request 
			mGeofenceRequestIntent = getTransitionPendingIntent();
			// Send a request to add the current geofences 
			if (mCurrentGeofences != null && !mCurrentGeofences.isEmpty())
			{ 
				mLocationClient.addGeofences(mCurrentGeofences, mGeofenceRequestIntent, this);
			} 
			break; 
		case REMOVE_INTENT:
			mGeofenceRequestIntent = getRemoveGeofencesPendingIntent();
			mLocationClient.removeGeofences(mGeofenceRequestIntent, this);
			break; 
		// If removeGeofencesById was called 
		case REMOVE_LIST:
			mLocationClient.removeGeofences(mGeofencesToRemove, this);
			break; 
 
		} 
	} 
 
	/**