Skip to content Skip to sidebar Skip to footer

Mediarecorder Invalid State 16

I'm trying to record audio and save to the sdcard. I'm getting an invalid state exception. I've added the correct permissions eg record_audio and write_external_storage. I've prepa

Solution 1:

You have two calls to mediaRecorder.start() {ref. Michael, above}. Also, after .stop()/.release(), add mediaRecorder=null.


Post a Comment for "Mediarecorder Invalid State 16"