Android Load images from drawable
<p>In my android project I have several images int the drawable folder with a prefix that I would like to load in a HashMap  : </p>

<p>Example :</p>

<pre><code>PREFIX_G6.png
PREFIX_P7.png
PREFIX_P9.png
</code></pre>

<p>I can construct the bitmap for a specific Image Like this :</p>

<pre><code>String drawableName = "PREFIX_" + "G6"; // ignore the extension
int drawableId  = context.getResources().getIdentifier(drawableName, "drawable", PACKAGE_NAME);
Bitmap icon = BitmapFactory.decodeResource(context.getResources(), drawableId);
mIcons.put(drawableName, icon); // my Hashmap
</code></pre>

<p>In order to load all the images from the drawable folder I need to be able to list them and test if they start with my PREFIX_  any ideas ?</p>
