1

Android Approximation alert not working

view story
linux-howto

http://stackoverflow.com – I want to add approximation alert to my location manager. i am giving latitude and longituge and giving 20 in the distance paramater. when i give the same lat and long from the emulator , my approximation pending intent do not trigerr. whats wrong? Here is my onCreate() @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); lm = (LocationManager) getSystemService(LOCATION_SERVICE); lm.addProximityAlert(31.4474, 73.08, 20, -1, PendingIntent.getActivity( Main.this, 0, (HowTos)