Android: Change Bitmap image displayed on Canvas
<p>I am drawing a bitmap in my onDraw and want to be able to change that image when a user clicks on a certain part of the screen.  I display the image like this...</p>

<pre><code>protected void onDraw(Canvas canvas) {
    super.onDraw(canvas);
    canvas.drawColor(Color.WHITE);
    canvas.drawBitmap(mallMap, 0, 0, null);
    canvas.drawLines(pts, paint);}
</code></pre>

<p>then in my onTouch method I'd like to be able to redraw a different bitmap</p>

<pre><code>public boolean onTouchEvent(MotionEvent event) {
    final int action = event.getAction();
    final int x = (int) event.getX();
    final int y = (int) event.getY();

    if (action == MotionEvent.ACTION_DOWN) {
    Canvas.drawBitmap(lowerLeft, 0, 0, null);
    return false;}
</code></pre>

<p>is something like this possible?  I need to stick with a canvas and am not sure how I would got about doing this.</p>

<p>Thanks.</p>
