title: Play audio file from the assets directory
body: <p>I have the following code:    </p>
  
  <pre><code>AssetFileDescriptor afd = getAssets().openFd("AudioFile.mp3");
  player = new MediaPlayer();
  player.setDataSource(afd.getFileDescriptor());
  player.prepare();
  player.start();
  </code></pre>
  
  <p>The problem is that, when I run this code, it starts playing all the audio files in the assets directory, in alphabetical order instead of just playing the audio file I requested. What am I doing wrong? Is there a better way to play audio files from the assets directory?</p>
  
  <p>Follow-up question: 
  Is there a difference between keeping audio files in the assets directory and keeping them in the res/raw directory? Besides the fact that they don't get ids if they are in the assets directory. If I move the audio files to the res/raw folder then I have a problem with reusing <code>MediaPlayer</code>s because there is no id parameter for <code>setDataSource()</code>. I can't find a good guideline for handling this kind of problem.</p>