Please accept YouTube cookies to play this video. By accepting you will be accessing content from YouTube, a service provided by an external third party.

YouTube privacy policy

If you accept this notice, your choice will be saved and the page will refresh.

 

Show the video description

In this video we will use a VideoView to play a local video file in our app. We will also add a MediaController and display it on top of our VideoView.

activity_main.xmlMainActivity.java