title: Playng video file present in Local File System in Android
body: <p>How to play video present in local file system (ex:in res/a.3gp) using VideoView .
  I need Sample code.
  I am trying to play as below:</p>
  
  <pre><code>import android.app.Activity;
  import android.os.Bundle;
  import android.widget.MediaController;
  import android.widget.VideoView;
  
  
  public class videoSample extends Activity {  
      /** Called when the activity is first created. */ 
       String path="D:/mApp2/videoSample/res/drawable-hdpi/adf.mp4"; 
      public void onCreate(Bundle savedInstanceState) { 
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
          VideoView videoView = (VideoView) findViewById(R.id.VideoView01);
          MediaController mediaController = new MediaController(this);
          mediaController.setMediaPlayer(videoView);
          videoView.setVideoPath(path);   
          videoView.setMediaController(mediaController);
          videoView.requestFocus();
          videoView.start();
          mediaController.show();
      }
  }
  </code></pre>
  
  <p>I am getting error as Video cant be played.
  Can any one help me in sorting out this issue?
  Thanks in Advance.</p>