title: How to use MediaPlayer which plays music stored in a folder found in the asset
body: <p>I am creating an android app from android studio.</p>
  
  <p>My intention is to have a function to play different songs depending on the string argument.</p>
  
  <pre><code> MediaPlayer mysound;
  public void play(String song){
  mysound = Mediaplayer.create(this, "../../../../asset/soundlib/" + song);
  mysound.play();
  }
  
  </code></pre>
  
  <p>I tried the R.assets.song. It just does not work. </p>
  
  <p>Is there a way to have the song named C.mp3? It says that they should not be capitalized and all of the arguments taken are basically chords like C A F...</p>
  
  <p>Thank you</p>
  
  <p><a href="https://i.stack.imgur.com/ubgDZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ubgDZ.png" alt="w "></a></p>