[android-developers] Re: Drawing a circle on a MapView to mark the accuracy of the location estimation ?

2010-12-02 Thread Dennis R .
Is using GPolygon() the only way ? No, you can just use this: Canvas.drawCircle(). Canvas.drawCircle is completely different from GPolygon. GPolygon draw the polygon with different sizes taking into account zoom level. I think that GPolygon it is not available on Android :( Anyone can

Re: [android-developers] Re: Drawing a circle on a MapView to mark the accuracy of the location estimation ?

2010-12-02 Thread TreKing
On Thu, Dec 2, 2010 at 12:34 PM, Dennis R. danielrodrigues6...@gmail.comwrote: Anyone can help with this? Help with what? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago

[android-developers] Re: Drawing a circle on a MapView to mark the accuracy of the location estimation ?

2010-11-29 Thread ip332
drawCircle requires diameter in pixels. In order to convert accuracy (in meters from LocationProvider) into pixels you can do this: - convert current location (GeoPoint) into pixels using mapView.getProjection.toPixels() - create another GeoPoint with longitude = center.getlatitudeE6() + accuracy