title: Android, want to reference Bitmaps in array using strings, programatically
body: <p>I'm looking for a nice programatic way I can use to refer to the images in my Bitmap[].</p>
  
  <p>At the moment, I declare a bunch of integers in my class</p>
  
  <pre><code>Bitmap[] mBmp = new Bitmap[6]    
  int image1 = 0, image2 = 1, image3 = 2, someimage = 3, otherimage = 4, yetanoimage = 5;
  </code></pre>
  
  <p>I then refer to them as follows:</p>
  
  <pre><code>mBmp[someimage] ...
  </code></pre>
  
  <p>However, this is inefficient and I would like to refer to them (preferrably) according to their filename (minus the extension) or some other unique identifier than can be programatically determined.</p>
  
  <p>The reason for this is that:</p>
  
  <ol>
  <li>number of images is arbitrary</li>
  <li>file names are arbitrary</li>
  <li>I want to automate the process as a template.</li>
  </ol>