How to play videos from SD Card
The videoView.setVideoURI(vidFile);
method needs to be replaced by the videoView.setVideoPath(path);
method.
Here path specifies the path of the video file on the SDCARD
.
This path can be easily retrieved using the MediaStore.Video.Media.DATA
property of that video file or by just entering the songpath statically as /sdcard/songname
.
In place of
videoView.setVideoUri(vidFile)
use
videoView.setVideoPath("/sdcard/SONG.")
.
Let me know.
Uri vidFile = Uri.parse(
Environment.getExternalStorageDirectory().getAbsolutePath()+"filename");
...
the rest of the code will be same.