Skip to content Skip to sidebar Skip to footer

Android Maps Api V2 Adding Multiple Circles

I'm trying to add a circle to the map every second with an update from the gps. How would I pass the Location location = locationmanager.getLastKnownLocation(provider); to make a n

Solution 1:

Instead of using getLastKnownLocation, you are better of using LocationListener's callback: onLocationChange for that, which you seem to implement and request already.

To convert Location to LatLng use:

new LatLng(location.getLatitude(), location.getLongitude())

Post a Comment for "Android Maps Api V2 Adding Multiple Circles"