I want to make a voice recorder app but it crashes when i click the \"Start Recording\" button. I get an error saying java.lang.IllegalStateException at android.media.Media
Caused by: java.lang.IllegalStateException at android.media.MediaRecorder.native_start(Native Method)
I was facing issue regarding media recorder. It was recording perfect but one i try to record the screen again then i get this error and media recorder gets crashed. After trying many things and tatics i tried this mediarecorder.release(); with this method every time i stop the recording the media recorder gets released and enables me to record again.