Playing A simple Video file,not working
<p>I made a simple app to play video but the video is not played.I put the video file in res/raw folder.</p>

<pre><code>public class Video extends Activity {

private MediaController mc;

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.main);
    VideoView video = (VideoView) findViewById(R.id.video);

    Uri uri = Uri.parse("android.resource://" + getPackageName() + "kidvideo");

    mc = new MediaController(this);
    video.setMediaController(mc);

    video.setVideoURI(uri);
    video.start();
}
</code></pre>

<p>}</p>

<hr>

<p>I have changed the code so that I can run the video file from SD CARD. I have push-ed the video file in data/misc/video/ folder. and changed the code into -            </p>

<pre><code>public class Video extends Activity {

private MediaController mc;
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
 // Fill view from resource
    setContentView(R.layout.main);
    VideoView video = (VideoView) findViewById(R.id.video);

 // Load and start the movie
    video.setVideoPath("data/misc/video/pocket-bike-kid");
    video.start();


}

}
</code></pre>

<p>but IT IS NOT WORKING.......</p>
