I already suffered from the same problem, and you should prefer the res / raw folder project instead of assets. Create a raw folder in the res folder. Save the video files in a supported format (3gp, wmv, mp4) and are named with lower case, numbers, underscores and dots in the file name: filename.3gp in the source folder.
VideoView videoview = (VideoView) findViewById(R.id.VideoView); String uriPath = "android.resource://your application package name/raw/your wmv/mp4/3gp file in res/raw path without extension"; videoview.setVideoURI(Uri.parse(uriPath)); videoview.start();
Tejaswini Hadpe Dec 05 '17 at 11:06 on 2017-12-05 11:06
source share