Possible Duplicate:
Android - Read PNG image without alpha and decode as ARGB_8888
In this tutorial I'm going through, a .png image is being loaded into a Bitmap object using BitmapFactory.Options.inPreferredConfig to set the Bitmap.Config to ARGB_8888 beforehand, but it doesn't appear to be working (tested the author's code - the image loads as an RGB_565 bitmap).
BitmapFactory.Options options = new BitmapFactory.Options();
options.inPreferredConfig = Bitmap.Config.ARGB_8888;
bitmapOrig = BitmapFactory.decodeResource(this.getResources(), R.drawable.sampleimage, options);
What would be the correct way to do it?