Stop in an invalid state: 1

I am trying to create a call logger in android. I use the class MediaRecorder: When My App reaches the next line: recorder.stop()I get the following error:

stop called in an invalid state: 1

What causes this problem?

Thanks in advance,

Kobi

+1
source share
1 answer

On the MediaRecorder docs page:

http://developer.android.com/reference/android/media/MediaRecorder.html

If you look at the state diagram above, you can only call stop()when it MediaRecorderis in a stateRecording

It's hard to say what you are doing wrong, without a code, but you must be in the wrong state to make a call stop().

+3
source

All Articles