Android fingerpaint canvas color
<p>I'm messing about with Fingerpaint.java in the SDK <a href="http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/FingerPaint.html" rel="nofollow">http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/FingerPaint.html</a></p>

<p>I've made a few adjustments to where I can save the bitmap and reopen to edit it later. Got that all working. Only issue is the canvas color on the saved copy is black rather than the color I set it too which means the canvas color when I go into edit is also black. I load my saved bitmap as such: The rest of the file is more or less the same as the one in the SDK. I'm just trying to figure out how I can get my canvas back to the desired color as when I first created it.</p>

<pre><code>    public MyView(Context c) {
        super(c);           
        Bundle extras = getIntent().getExtras();
        imageURI = extras.getString(Intent.EXTRA_SUBJECT);
        mBitmap = BitmapFactory.decodeFile(imageURI);
        Drawable d = new BitmapDrawable(mBitmap);
          Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
          Canvas canvas = new Canvas(bitmap);
          d.setBounds(0, 0, width, height);
          d.draw(canvas);
          mBitmap = bitmap;
          mCanvas = canvas;
          mPath = new Path();
          mBitmapPaint = new Paint(Paint.DITHER_FLAG);  
    }
</code></pre>
