title: Can't use MediaPlayer.create in new View.OnFocusChangeListener() in Android app
body: <p>OK, I'm having an issue that I don't understand in my Android app. In the code below, I'm getting an error on the <code>MediaPlayer mpWeight = MediaPlayer.create(this, R.raw.mppig)</code>;</p>
  
  <p>Holding my cursor over create says:</p>
  
  <p>The method <code>create(Context, int)</code> in the type <code>MediaPlayer</code> is not applicable for the arguments (<code>new View.OnFocusChangeListener(){}, int</code>)</p>
  
  <p>What does that mean, and more importantly, how do I resolve it?</p>
  
  <p>Here's the whole routine:</p>
  
  <pre><code>    TextView tv=(TextView)findViewById(R.id.weight);
      tv.setOnFocusChangeListener(new OnFocusChangeListener(){
        @Override
        public void onFocusChange(View v,boolean hasFocus){
              /* When focus is lost check that the text field
               * has valid values.
               */
              if (!hasFocus) {
                  float tempweight = Float.parseFloat(et_weight.getText().toString());
                  if(tempweight &gt; 200){
                      MediaPlayer mpWeight = MediaPlayer.create(this, R.raw.mppig);
                      mpWeight.start();
                  }
              }
        }          
      });
  </code></pre>