1

proximity alerts on android 4.2

view story
linux-howto

http://stackoverflow.com – In my project i'm using proximity alert which is working fine with android 4.1 version(API 16) but on android 4.2( API 17) it wont work . do i need to add some extra flags or something?? loctionContex = Context.LOCATION_SERVICE; LocationManager locationManager = (LocationManager)getSystemService(loctionContex); Intent intent1 = new Intent(PROXIMITY_ALERT); PendingIntent proximityIntent = PendingIntent.getBroadcast(this, 0, intent1, 0); locationManager.addProximityAlert(lat, lng, 4, -1, proximityIntent); IntentFilter filter = new IntentFilter(PROXIMITY_ALERT); registerReceiver(new Proxi (HowTos)