Dear All; I create a videoview to play my mp4  file and I have added
my mp4 file to the resource , but I dnt know how to get the path to
that file or to parse it from resource
so I get that code :
  VideoView videoView = (VideoView) findViewById(R.id.videoView1);
        MediaController mediaController = new MediaController(this);
        mediaController.setAnchorView(videoView);
        // Set video link (mp4 format )
      Uri video = Uri.parse( "");
       // videoView.setVideoPath("/Hello.Text/res/drawable-mdpi/
vidoe.MP4");
        videoView.setMediaController(mediaController);
       videoView.setVideoURI(video);
        videoView.start();

What change I have to parse my file ?

regards...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to