title: Android get R.raw from variable
body: <p>i have some sounds in a raw folder on my app.
  And sometimes i need to play a sound, but i don't know exactly which is. </p>
  
  <p>Example :</p>
  
  <pre><code>String actualSound = "hit"
  
  playSound(mediaPlayer, R.Raw.actualSound));
  </code></pre>
  
  <p>I want to play the R.raw.hit but i don't know how to do that.</p>