Code example for LocationManager

Methods: addProximityAlert

0
		Intent intent = new Intent(context, ProximityReceiver.class);
		pIntent = PendingIntent.getBroadcast(context, 0, intent, 0);
 
		locMgr = (LocationManager) context
				.getSystemService(context.LOCATION_SERVICE);
		locMgr.addProximityAlert(lat, lon, radius, -1, pIntent);
 
	} 
 
	/** 
	 * ������ �˶� ���� Method 
	 */ 
	public synchronized void removeLocation() { 
		if (pIntent != null) {
			locMgr.removeProximityAlert(pIntent);
		} 
	} 
	 
	public synchronized void release(){ 
		if(mTheInstance != null)
Stop searching for code, let great code find you!  Add Codota to your java IDE