I want to draw bitmap on draw method in MyPositionOverlay extends Overlay class but I get this error: The method getResource() is undefined for the type MyPositionOverlay
Where I'm wrong?
Here is code form draw method:
Bitmap bmp = BitmapFactory.decodeResource(getResource(), R.drawable.icon);
canvas.drawBitmap(bmp, screenPts.x, screenPts.y-50, null);
Thanks