Android – VideoView – iterate through a list of clips [closed]-Collection of common programming errors

I am building a Video Player client using the Android’s VideoView control. What I need is to have the ability to iterate through a list of songs forward and backward, by pressing the Next, Prev buttons.

The idea should be the following: when clicking “Next”, 1) stop the currently playing video, 2) take the new Uri and assign to VideoView

3) call VideoView.start();

It should work properly, but it does not. Plus, I see the "media player went away with unhandled events" in the LogCat.

Here’s how I stop, and start playing a new video:

// Stop currently playing video
videoView.stopPlayback();

// Start a new video.  
videoView.setVideoURI(Uri.parse(videoUris.get(uriPosition)));  
videoView.start();  

I am assuming that the issue is because I do not stop the VideoView properly, but not sure.