Hello all… 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… Read More »
MediaPlayer class can be used to play Audio in ANDROID. See how to do this.
In ANDROID all resource has a unique resource ID which we get by passing the song name to the function below playSong(). The function getAllResourceIDs() will convert this String which is the name of the song to the unique resource ID which can then be used to play the song. setOnCompletionListener() will be executed when… Read More »