Drawing a bitmap-animation doesn't work
<p>I got the following problem with drawing an animation on a surfaceview in android:</p>

<p>I use a thread to make the onDraw()-method get called regulary, and i use this:</p>

<pre><code>c.drawBitmap(pic, partOfTheImage, destination, null);
</code></pre>

<p>to draw the part of the spritesheet i want to draw.
The problem now is that altough i change "partOfTheImage", the only thing thats drawn is what was drawn first. It doesnt change, no animation.</p>

<p>Here is the code in the thread:</p>

<pre><code>            try {
               c = getGw().getHolder().lockCanvas();
               synchronized (getGw().getHolder()) {
                   getGw().onDraw(c);

               }
        } finally {
               if (c != null) {
                   getGw().getHolder().unlockCanvasAndPost(c);
               }
       }
</code></pre>

<p>Does anyone know why my Bitmap isnt updating?</p>
