I am learning android developing. In VideoView
everything is okay but video can not find from the raw
directory which I made already. Please check my screenshot.
Asked
Active
Viewed 202 times
-3

ADM
- 20,406
- 11
- 52
- 83

Tarikul Islam
- 23
- 2
-
Double Check if you have imported the right R file . In edition try Invalidate and restart AS. – ADM Apr 29 '19 at 10:54
-
Did you rebuild your project after adding that raw file? – Mike M. Apr 29 '19 at 11:37
-
1Possible duplicate of [How to play video from raw folder with Android device?](https://stackoverflow.com/questions/15675944/how-to-play-video-from-raw-folder-with-android-device) – Zoe Apr 29 '19 at 11:46
2 Answers
0
Copy Video to Assets Folder, Then
String path = "file:///android_asset/video.mp4";
videoview.setVideoURI(Uri.parse(path));

Ganesh Pokale
- 1,538
- 1
- 14
- 28
-
It's working but after installing running apk this show "can't play this video" please help. – Tarikul Islam Apr 29 '19 at 10:58
0
The name of video must be in small letter and rebulid the project for AS detect the video and can load on the videoPath.
In Capital letter AS send message error when you rebuild the project.
This can resolved the problem.