android decodeResource returns null for xml bitmap - API level 7
<p>I've a curious situation: after moving my PNGs from /drawable-hdpi/ to /drawable/ and putting XML bitmaps to /drawable-hdpi/ instead, I can not decode these bitmaps with <code>BitmapFactory.decodeResource()</code> method - it returns <code>null</code>.
What is stranger is that:</p>

<ol>
<li>I can decode actual the png file with this method (giving the actual drawable id)</li>
<li>I can get the drawable using <code>context.getResources().getDrawable(xml_id)</code> - </li>
<li>All ImageViews components are decoded correctly (but thats due to p. 2 I suppose)</li>
</ol>

<p>What I see in the logcat is :</p>

<blockquote>
  <p>12-03 16:18:13.557: D/skia(2566): --- SkImageDecoder::Factory returned null<br>
  12-03 16:18:13.557: D/skia(2566): --- SkImageDecoder::Factory returned null<br>
  12-03 16:18:13.567: D/skia(2566): --- SkImageDecoder::Factory returned null</p>
</blockquote>

<p>so I would take a wild guess that the decoder is given the xml file to decode instead of the actual resource (which I checked is valid).</p>

<p>Any hints? Is it possible to <code>BitmapFactory.decodeResource()</code> with the xml bitmap?
Btw, I'm using API 7.</p>

<p>And I've also tried to put the origina lpngs into drawable-nodpi but that did not help either.
thanks</p>
