title: Using MediaPlayer with setOnPreparedListener
body: <p>I'm trying to set an <code>OnPreparedListener</code>, but I get this error:</p>
  
  <blockquote>
    <p>The method setOnPreparedListener(MediaPlayer.OnPreparedListener) in the type MediaPlayer is not applicable for the arguments (new OnPreparedListener(){})</p>
  </blockquote>
  
  <p><code>DV</code> is a global MediaPlayer.</p>
  
  <pre><code>String url = "&lt;myurl&gt;";
  DV = new MediaPlayer();
  DV.setAudioStreamType(AudioManager.STREAM_MUSIC);
  
  DV.setDataSource(url);
  DV.prepareAsync();
  
  DV.setOnPreparedListener(new OnPreparedListener() {
       public void onPrepared(MediaPlayer mp) {
           mp.start();
       }
  });
  </code></pre>