title: Play a sound from res/raw
body: <p>I m making an app which is supposed to play a few sounds with the mediaPlayer.
  This is the code i use :</p>
  
  <pre><code>String[] name = {"sonar_slow","sonar_medium","sonar_fast"};
      String link = "/res/raw/" + name[state-1] + ".mp3";
  
      try {
          player.setDataSource(link);
          player.prepare();
          player.start();
      } catch(Exception e) {
          e.printStackTrace();
      }
  </code></pre>
  
  <p>I also tried this :</p>
  
  <pre><code>        if(state==1){
              player.create(this, R.raw.sonar_slow);
          }else if(state==2){
              player.create(this, R.raw.sonar_medium);
          }else if(state==3){
              player.create(this, R.raw.sonar_fast);
          }
          player.start();
  </code></pre>
  
  <p>But none of the above is working. My app is not crashing but the sound is not playing.
  Any ideas ?</p>