1
找不到MediaRecorder:啓動失敗-1錯誤消息的含義。MediaRecorder:啓動失敗-1是什麼意思?
我打電話給MediaRecorder.start();
謝謝你的時間。
11-17 20:01:49.726: E/MediaRecorder(20600): start failed: -1
11-17 20:01:49.726: W/dalvikvm(20600): threadid=1: thread exiting with uncaught exception (group=0x400207d8)
11-17 20:01:49.726: E/AndroidRuntime(20600): FATAL EXCEPTION: main
11-17 20:01:49.726: E/AndroidRuntime(20600): java.lang.IllegalStateException: Could not execute method of the activity
11-17 20:01:49.726: E/AndroidRuntime(20600): at android.view.View$1.onClick(View.java:2072)
11-17 20:01:49.726: E/AndroidRuntime(20600): at android.view.View.performClick(View.java:2408)
11-17 20:01:49.726: E/AndroidRuntime(20600): at android.view.View$PerformClick.run(View.java:8816)
11-17 20:01:49.726: E/AndroidRuntime(20600): at android.os.Handler.handleCallback(Handler.java:587)
11-17 20:01:49.726: E/AndroidRuntime(20600): at android.os.Handler.dispatchMessage(Handler.java:92)
11-17 20:01:49.726: E/AndroidRuntime(20600): at android.os.Looper.loop(Looper.java:123)
11-17 20:01:49.726: E/AndroidRuntime(20600): at android.app.ActivityThread.main(ActivityThread.java:4633)
11-17 20:01:49.726: E/AndroidRuntime(20600): at java.lang.reflect.Method.invokeNative(Native Method)
11-17 20:01:49.726: E/AndroidRuntime(20600): at java.lang.reflect.Method.invoke(Method.java:521)
11-17 20:01:49.726: E/AndroidRuntime(20600): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
11-17 20:01:49.726: E/AndroidRuntime(20600): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
11-17 20:01:49.726: E/AndroidRuntime(20600): at dalvik.system.NativeStart.main(Native Method)
11-17 20:01:49.726: E/AndroidRuntime(20600): Caused by: java.lang.reflect.InvocationTargetException
11-17 20:01:49.726: E/AndroidRuntime(20600): at com.cording.RecordTab.onMyButtonClick(RecordTab.java:64)
11-17 20:01:49.726: E/AndroidRuntime(20600): at java.lang.reflect.Method.invokeNative(Native Method)
11-17 20:01:49.726: E/AndroidRuntime(20600): at java.lang.reflect.Method.invoke(Method.java:521)
11-17 20:01:49.726: E/AndroidRuntime(20600): at android.view.View$1.onClick(View.java:2067)
11-17 20:01:49.726: E/AndroidRuntime(20600): ... 11 more
11-17 20:01:49.726: E/AndroidRuntime(20600): Caused by: java.lang.RuntimeException: start failed.
11-17 20:01:49.726: E/AndroidRuntime(20600): at android.media.MediaRecorder.start(Native Method)
11-17 20:01:49.726: E/AndroidRuntime(20600): at com.cording.Recorder.start(Recorder.java:130)
11-17 20:01:49.726: E/AndroidRuntime(20600): ... 15 more
感謝您的答覆。在錄製時我只從一個活動轉到另一個活動,而不是當我停止錄製活動中的錄製時出現錯誤,然後轉到其他活動。 – user997101
還發現它還在記錄我還活動之間的活動,沒有意識到。看到我的LogCat上的錄音。謝謝(你的)信息 – user997101