Code example for LocationClient

Methods: removeGeofences

0
	} 
	 
	private void removeGeofence() { 
		List<String> geoList = new ArrayList<String>();
		geoList.add("Dave");
		_lc.removeGeofences(geoList, new LocationClient.OnRemoveGeofencesResultListener() {
 
			@Override 
			public void onRemoveGeofencesByPendingIntentResult(int arg0,
					PendingIntent arg1) {}
 
			@Override 
			public void onRemoveGeofencesByRequestIdsResult(int arg0,
					String[] arg1) {}} );
	}	 
	 
	@Override 
	public void onBackPressed() { 
		Intent intent = new Intent(this, MainActivity.class);
		intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
    	this.startActivity(intent);