title: Iterate through certain images in res/drawable-mdpi
body: <p>In the <a href="https://github.com/afarber/android-newbie/tree/master/MyTiles/res/drawable-mdpi" rel="nofollow">res/drawable-mdpi</a> folder I have 26 letter images, named <strong>big_0.png</strong> to <strong>big_25.png</strong>.</p>
  
  <p>I would like to add them all (and ignore any other images in the folder) to a hash map:</p>
  
  <pre><code>private static HashMap&lt;Character, Drawable&gt; sHash = 
      new HashMap&lt;Character, Drawable&gt;();
  </code></pre>
  
  <p>Initially I was planning something like:</p>
  
  <pre><code>private static final CharacterIterator ABC = 
      new StringCharacterIterator("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
  
  int i = 0;
  for (char c = ABC.first(); 
      c != CharacterIterator.DONE; 
      c = ABC.next(), i++) {
  
          String fileName = "R.drawable.big_" + i;
          Drawable image = context.getResources().getDrawable(fileName);
          sHash.put(c, image);
  }
  </code></pre>
  
  <p>But then I've realized that <code>R.drawable.big_0</code> to <code>R.drawable.big_25</code> are of type <strong>int</strong> and not <strong>String</strong>.</p>
  
  <p>So please advise me, how to iterate through the 26 images correctly?</p>