title: Android: MediaPlayer.setOnPreparedListener()
body: <p>I've got a Service, which implements <code>MediaPlayer.OnPreparedListener</code>.</p>
  
  <p>Until now I called <code>player.setOnPreparedListener(this)</code> inside a function and it worked well. Now I want to call <code>setOnPreparedListener</code> from <code>Runnable</code> (using a <code>Handler</code>), but I get error :</p>
  
  <blockquote>
    <p>The method setOnPreparedListener(MediaPlayer.OnPreparedListener) in
    the type MediaPlayer is not applicable for the arguments (new
    Runnable(){})</p>
  </blockquote>
  
  <p>So instead of <code>this</code> I would need to use something that would point to current <code>class</code>. The question is, which <code>class</code>?</p>