Code example for LocationManager

Methods: addProximityAlert

0
	public void addProximityAlert(double latitude, double longitude, 
			float radius, int expiration, String message) {
		 
		PendingIntent pendingIntent = 
				PendingIntent.getBroadcast(getApplicationContext(), 0, new Intent(message), 0);
		locationManager.addProximityAlert(
				latitude, longitude, radius, expiration, pendingIntent);
		proxAlertIntents.add(pendingIntent);
		 
		IntentFilter intentFilter = new IntentFilter(message);
		registerReceiver(notificationReceiver, intentFilter);
		 
	} 
	 
 
	public void removeProximityAlert() { 
		//TODO: Create method to remove specific proximity alerts; javadoc 
	} 
	 
	/** 
	 * Remove all proximity alerts that have currently been created