I have looked at various different websites looking for a solution for this problem in my code. It is a basic audio player with 3 buttons: play, pause and stop. Play and pause w
I fixed this problem by removing the player.stop() which was being called when the player finished the song because of player.setOnCompletionListener(). This has now resolved the problem and the player is working perfectly.