停止所谓的无效状态:1状态

由网友(腐朽陨歌)分享简介:我想打造的android通话记录。我现在用的 MediaRecorder 类:当我的应用程序达到以下行: recorder.stop()我收到以下错误:I am trying to build a call recorder in android. I am using the MediaRecorder Class...

我想打造的android通话记录。我现在用的 MediaRecorder 类:当我的应用程序达到以下行: recorder.stop()我收到以下错误:

I am trying to build a call recorder in android. I am using the MediaRecorder Class: When My App reaches the following line: recorder.stop() I get the following error:

stop called in an invalid state: 1

是什么原因导致这个问题?

What causes that problem?

由于提前,

KOBI

推荐答案

从MediaRecorder文件页:

From the MediaRecorder documents page:

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

看着给出的状态图,你只能叫停止() MediaRecorder 是状态录制

Looking at the state diagram given, you can only call stop() when the MediaRecorder is in the state Recording

很难告诉你在做什么错不可code,但你必须要在错误的状态叫停止()

Hard to tell what you are doing wrong without code, but you have to be in the wrong state to call stop().

阅读全文

相关推荐

最新文章