How can I use proximity alerts on my Google Maps activity?
This proximity alerts are located within a certain radius that I already specified earlier.
public class GeoUpdateHandler implements LocationListener
{
public void onLocationChanged(Location location)
{
// TODO Auto-generated method stub
int lat = (int)(location.getLatitude() * 1E6);
int lng = (int)(location.getLongitude() * 1E6);
GeoPoint point = new GeoPoint(lat, lng);
mapController.animateTo(point); // mapController.setCenter(point)
}
}
Since you haven’t provided any line of code it’s really difficult to suggest you anything else than reading the following tutorial: Android Proximity Alerts Tutorial.
The key part of it is the LocationManager.addProximityAlert() method, which