I need to get the duration of an audio file for a series of voice announcements that need to play from an app. I have added the audio files as resources and they do play just f
The holy five:
if(mp!=null) { if(mp.isPlaying()) mp.stop(); mp.reset(); mp.release(); mp=null; }
Just put mp.reset(); before mp.release();.
mp.reset();
mp.release();