How to check if MediaPlayer is relased()?

view story

http://stackoverflow.com – I want to check if MediaPlayer is released - how to check it? I found that isPlaying generate exception instead of false - it is complicated how to do it in simple way. mediaPlayer = new MediaPlayer(); mediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { @Override public void onCompletion(MediaPlayer mp) { mediaPlayer.release(); } }); (HowTos)