title: load a MediaPlayer from a Uri in a context assets
body: <p>I have an audio file in my assets directory. assets/audio/dance.mp3.</p>
  
  <p>If I run context.getAssets().list("audio");  it shows up.</p>
  
  <p>But when I try to use MediaPlayer.create(context,uri)  it always fails and returns null.</p>
  
  <p>none of this seems to work</p>
  
  <pre><code>private void tryLoad(String path,Context context)
  {
      Uri uri = Uri.parse(path);
      this.audioPlayer =  MediaPlayer.create(context,uri);
      if (this.audioPlayer == null)
      {
          Log.d(TAG, "loadAudio: audioPlayer is null. current assets"+ uri.toString()) ;
      }
      else
      {
          Log.d(TAG, "loadAudio: WORKED"+ uri.toString()) ;
      }
  
  }
  public void loadAudio(Context context)
  {
      if (this.audioPlayer != null)
          return;
      if (this.audioFile != null &amp;&amp; this.audioFile.length() &gt;0)
      {
          try 
          {
              tryLoad("/dance.mp3",context);
              tryLoad("dance.mp3",context);
              tryLoad("audio/dance.mp3",context);
              tryLoad("/audio/dance.mp3",context);
              tryLoad("assets/audio/dance.mp3",context);
              tryLoad("/assets/audio/dance.mp3",context);
              tryLoad("\\dance.mp3",context);
              tryLoad("dance.mp3",context);
              tryLoad("audio\\dance.mp3",context);
              tryLoad("\\audio\\dance.mp3",context);
              tryLoad("assets\\audio\\dance.mp3",context);
              tryLoad("\\assets\\audio\\dance.mp3",context);
          }   
          catch (Exception e)
          {
              Log.d(TAG, "loadAudio exception: " + e.getMessage());
          }
      }
  }
  </code></pre>