title: Android: Play local video with mediaplayer
body: <p>I am trying to play a video i have saved in my project. I have download <a href="http://camendesign.co.uk/code/video_for_everybody/test.html" rel="noreferrer">this</a>
  (an .mp4 test video) then created a folder within my project called vid on the root of the project. I have then used this code:</p>
  
  <pre><code>public void PlayLocalVideo(View view)
      {
      VideoView video=(VideoView) findViewById(R.id.video1);
      MediaController mediaController = new MediaController(this);
      mediaController.setAnchorView(video);
      video.setMediaController(mediaController);
      video.setKeepScreenOn(true);
      video.setVideoPath("android.resource://uk.co.SplashActivity/vid/big_buck_bunny.mp4");
      video.start();
      video.requestFocus();
  }
  </code></pre>
  
  <p>my xml looks like this:</p>
  
  <pre><code>&lt;VideoView
      android:id="@+id/video1"
      android:layout_width="match_parent"
      android:layout_height="wrap_content" /&gt;
  </code></pre>
  
  <p>PlayLocalVideo is a method i have then used on the onclick event on a button. but when i press play nothing happens :(</p>