I have this method to set current location pushpin on map:
private void createPushPinOnMap(Canvas canvas, MapView mapView, BOMPushpin pushpin) {
Location location = currentBestLocation;
float accuracy = location.getAccuracy();
Point pointPts = mapView.getProjection().toPixels(new GeoPoint(pushpin.getLatitude(),
pushpin.getLongtitude()),
null);
Bitmap bmp1 = BitmapFactory.decodeResource(
context.getResources(), R.drawable.pushpin);
canvas.drawBitmap(bmp1, pointPts.x-10, pointPts.y-34, null);
}
But I need to change this code, so pushpin size would be somehow equal to accuracy (Like in maps.google.com location pushpin).
Why no one told me that androids google api has class named MyLocation, which makes everything .