Android: mediaplayer went away with unhandled events

Solution 1:

Just put mp.reset(); before mp.release();.

Solution 2:

The holy five:

    if(mp!=null) {
        if(mp.isPlaying())
            mp.stop();
        mp.reset();
        mp.release();
        mp=null;
    }