Load .png image as ARGB_8888 bitmap
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2881939/android-read-png-image-without-alpha-and-decode-as-argb-8888">Android - Read PNG image without alpha and decode as ARGB_8888</a>  </p>
</blockquote>



<p>In this tutorial I'm going through, a .png image is being loaded into a Bitmap object using <em>BitmapFactory.Options.inPreferredConfig</em> to set the <em>Bitmap.Config</em> 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).</p>

<pre><code>BitmapFactory.Options options = new BitmapFactory.Options();

options.inPreferredConfig = Bitmap.Config.ARGB_8888;
bitmapOrig = BitmapFactory.decodeResource(this.getResources(), R.drawable.sampleimage, options);
</code></pre>

<p>What would be <strong>the correct way</strong> to do it?</p>
