title: How to play videos from SD Card
body: <p>I was creating a simple app which stream videos from net and I made it but now I want to change the code so that I can play video files from my SDCard</p>
  
  <p>original code:</p>
  
  <pre><code>Uri vidFile = Uri.parse("MY SITE HERE");
  VideoView videoView = (VideoView) findViewById(R.id.VideoView);
  videoView.setVideoURI(vidFile);
  videoView.setMediaController(new MediaController(this));
  videoView.start();
  </code></pre>
  
  <p>So please help me with changing the code so that it can play videos from my mobile memory card.</p>