title: (Context, Token) in instantiating MediaController
body: <p>I am trying to add a mediaController in my VideoView. I am trying to follow the tutorial in this <a href="http://www.techotopia.com/index.php/An_Android_Studio_VideoView_and_MediaController_Tutorial" rel="noreferrer">site</a>.</p>
  
  <p>However, I am having an error in my class in this line.</p>
  
  <pre><code>MediaController mediaController = new MediaController(this);
  </code></pre>
  
  <p>The error says, </p>
  
  <p><code>MediaController (Context, Token) in MediaController cannot be applied to (MainActivity)</code></p>
  
  <p>What is the <code>Token</code> parameter? Its been a while since I have coded in Native Android and I think I missed some necessary details and changes. </p>
  
  <p><strong>EDIT</strong>
  I was looking in a different tutorial, the one in the link, is Made in Android Studio. My Mistake.</p>
  
  <p><strong>My Class</strong></p>
  
  <pre><code>public class MainActivity extends ActionBarActivity {
  public VideoView videoOne;
  @Override
  protected void onCreate(final Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      videoOne = (VideoView) findViewById(R.id.videoView);
      videoOne.setVideoURI(Uri.parse("android.resource://" + getPackageName() + "/" + R.raw.video1));
      videoOne.start();
  
      MediaController mediaController = new MediaController(this);
      mediaController.setAnchorView(videoOne);
      videoOne.setMediaController(mediaController);
  
      videoOne.setOnPreparedListener(new MediaPlayer.OnPreparedListener()  {
          @Override
          public void onPrepared(MediaPlayer mp) {
              Log.i("Video Duration", "Duration = " + videoOne.getDuration());
          }
      });
      videoOne.setMediaController(mediaController);
  
  }
  </code></pre>