I am new to android programming. I want to make an app that can create proximity alerts based on the location coordinates stored in a server, that is compare user's current location with those stored in server and generate an alert if the location is within a particular radius. Is there any way to create proximity alerts for locations stored in a server ? Or is there any better approach for this problem ?
Thanks
In android its quite simple to do that.
Please, take a look at this class
http://developer.android.com/reference/android/location/LocationManager.html
especially at this method:
addProximityAlert(double, double, float, long, android.app.PendingIntent);
this is exactly what you need.
The android SDK docs are really well done. Take always a look there ! :D
来源:https://stackoverflow.com/questions/12669860/proximity-alert-for-location-coordinates-stored-in-server