Android VideoView Example
In this tutorial we will learn, How to use VideoView to play a local video file in our app. We will also add a MediaController and display it on top of our VideoView. #AndroidVideoView
STEP 1 : Create new Android Studio Project.
STEP 2 : After Creating new Project go to res->layout->activity_main.xml
STEP 3: Right click on res folder, select New> Directory, then studio will open a dialog box and it will ask you to enter the name.
STEP 4: Write “raw” and click OK. Open res folder and you will find your raw folder under it.
STEP 5 : Add video to raw folder by simply copy and paste that to raw folder.
STEP 6: And this is the final step now open your MainActivity.java file and add below code
STEP 7 : OUTPUT
Show More Tutorials And Feel free to SUBSCRIBE to my YOUTUBE channel