Android getResource() undefined error
<p>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</p>

<p>Where I'm wrong?</p>

<p>Here is code form draw method:</p>

<pre><code>  Bitmap bmp = BitmapFactory.decodeResource(getResource(), R.drawable.icon); 
     canvas.drawBitmap(bmp, screenPts.x, screenPts.y-50, null);
</code></pre>

<p>Thanks</p>
