Code example for LocationClient

Methods: addGeofences

0
		switch (mRequestType) {
		case ADD:
			// Get the PendingIntent for the request 
			mTransitionPendingIntent = getTransitionPendingIntent();
			// Send a request to add the current geofences 
			mLocationClient.addGeofences(mCurrentGeofences,
					mGeofenceRequestIntent, this);
		} 
	} 
 
	@Override 
	public void onDisconnected() { 
		// Turn off the request flag 
		mInProgress = false;
		// Destroy the current location client 
		mLocationClient = null;
	} 
 
	/** 
	 * Start a request for geofence monitoring by calling 
	 * LocationClient.connect().