How to check whether a video has completed playing in android?

Today I will show you how to get notified when a video completes playing in android.
PLease check this post for playing a video and the resources.
First create a folder named “raw” inside the “res” folder and copy a video inside it.
Now copy the xml from this link.

For listening to the video completion add a setOnCompletionListener to the VideoView Object.
Here is hoe we do this.