Code example for MediaPlayer

Methods: release

0
    @Override 
    protected void onDestroy() { 
        super.onDestroy(); 
        // TODO Auto-generated method stub 
        if (mMediaPlayer != null) {
            mMediaPlayer.release();
            mMediaPlayer = null;
        } 
 
    } 
}