Using native apps to capture video content from within our own apps is achieved in an almost identical way, to the one we just applied. The main difference is that when dealing with video content a lot of the functionality is provided by the purpose-built widget, the
VideoView. We will also add video control buttons with the
MediaController and see how to pause a video when our app is sent to the background. Follow these steps to build a simple video app:
activity_main.xmlfile and replace the
<VideoView android:id="@+id/video_view" android:layout_width="match_parent" ...