I have this code:
private void setupProximity() {
Intent intent = new Intent(this, viewContacts.class);
PendingIntent sender = PendingIntent.getBroadcast(this,
0, intent, 0);
LocationUtils.addProximity(this, -37.40, 144.55, 1000, 1000000, sender);
}
public static void addProximity(Context ctx,double lat, double lon, float rad,long exp, PendingIntent pintent) {
LocationManager lm = (LocationManager) ctx.getSystemService(Context.LOCATION_SERVICE);
lm.addProximityAlert(lat, lon, rad, exp, pintent);
}
Why I don't get the class to fire up? I am in the range of the zone.