use video view in android code example
Example: android video view
VideoView myVideo = (VideoView) findViewById(R.id.GifVideoView);
myVideo.setVideoURI(Uri.parse("android.resource://" + getPackageName() + "/" + R.raw.dog_video));
myVideo.start();
VideoView myVideo = (VideoView) findViewById(R.id.GifVideoView);
myVideo.setVideoURI(Uri.parse("android.resource://" + getPackageName() + "/" + R.raw.dog_video));
myVideo.start();