title: Android Java, bitmap from resources
body: <p>I have my images in my res/drawable folder, there's no problem about that.
  The thing is, i'd like to be able to do something like this:</p>
  
  <pre><code>Bitmap mBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.*img[contar]*);
  </code></pre>
  
  <p>In other words eclipse doesn't let me do this <code>img[contar]</code> it only accepts the specific name of the image file (example: crystalblue), and i'd like to lets say move from "crystalblue" to "crystalred" image and in my case i need a variable to do it.</p>
  
  <p>Obs: I did declare img as string array.</p>
  
  <p>Any solutions anyone?</p>