Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Location Alarm for Android?

When starting my app, several POI coordinates shall be added to the Android System. Some hours later, my app is closed and the user walks close to one of the POI he shall get notified e.g. through a status message.

Is this the right approach for my scenario? Are there more things available in Android to achieve this?

public void addProximityAlert (double latitude, double longitude, float radius, long expiration, PendingIntent intent)

like image 581
OneWorld Avatar asked Nov 26 '10 15:11

OneWorld


1 Answers

Yes, you would use LocationManager and addProximityAlert() as the basis for your desired feature.

like image 73
CommonsWare Avatar answered Sep 27 '22 20:09

CommonsWare