title: Java Android: How to give media player a string value to a resource
body: <p>I have a function where i run an audio </p>
  
  <pre><code>public void PlaySound(String FileName){
       MediaPlr = MediaPlayer.create(Context, R.raw.s1);
       MediaPlr.start();
  }
  </code></pre>
  
  <p>The problem is <code>R.raw.s1</code>, i want to replace <code>s1</code> with <code>FileName</code>, but it doesn't take a String.
  What can i do???</p>
  
  <p>Thanks for all help</p>