I\'m trying to detect if a user is in the radius of a Marker , using the users gps location. I have the marker\'s coordinates, but I don\'t know how to calculate whether the
@Daniel Nugent:
imho getRadius() will return the radius and not the diameter so the "/2" is wrong
@WARpoluido:
I cant see that the mMarker variable is updated when the location changes. Why dont you use the value given to onMyLocationChange()?
Location.distanceBetween( mCircle.getCenter().latitude, mCircle.getCenter().longitude, location.getLatitude(), location.getLongitude(), distance);
if( distance[0] > mCircle.getRadius() ){
...