As the final recipe of this chapter, we will see how to play a movie with your Android application. Playing video, unlike playing audio, involves some special
View elements for displaying it to the users.
For the last time, we will reuse the same project, and more specifically, we will play a video of Mario under the button for playing the Mario theme seen in the previous recipe.
Main.axmlfile under the
<VideoView android:id="@+id/myVideoView" android:layout_width="fill_parent" android:layout_height="fill_parent"> </VideoView>
Main.axmlfile should look as follows:
MainActivity.csclass in the