title: It's possible to load R.drawable from resources passing a String parameter?
body: <p>It's possible to load an image from resources passing to R.drawable a String?</p>
  
  <p>I'm trying this:</p>
  
  <pre><code>public static Bitmap LoadBitmap(Context context, String filename)
  {
       Bitmap image;
       image = BitmapFactory.decodeResource(context.getResources(), R.drawable.filename);
       return image;
  }
  </code></pre>
  
  <p>Throws the following error:</p>
  
  <pre><code>filename cannot be resolved or is not a field
  </code></pre>
  
  <p>I'm trying to create the field in the R file creatic a constant but throws the following line:</p>
  
  <pre><code>R.java was modified manually! Reverting to generated version!
  </code></pre>
  
  <p>I'll appreciate your help or suggestions. Thanks</p>