Code example for LocationManager

Methods: addProximityAlert

0
	private void addProximityAlert() { 
		Intent intent = new Intent(proxi_alert_intent);
		PendingIntent proximityIntent = PendingIntent.getBroadcast(this, 0,
				intent, 0);
		// 55,65970, 12,59103 
		locationManager.addProximityAlert(this.latitude, this.longitude,
				radius, -1, proximityIntent);
		// IntentFilter filter = new IntentFilter(proxi_alert_intent); 
		// registerReceiver(new ProximityIntentReceiver(), filter); 
	} 
 
	private void onSignedIn(Account account) {
		this.account = account;
		this.currentState = AppState.SIGNED_IN;
		gotoNext(); 
	} 
 
	private void onBluetoothInDiscoverableMode(String address) {
		this.btmacaddr = address.replace(":", "");
		this.currentState = AppState.ENABLED_BT;
		gotoNext();