Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 203

jandcproductions
Lost but trying
Profile
Posts: 28
Reg: Mar 22, 2013
Lugoff
580
04/24/13 02:02 PM (12 years ago)

Voice Recorder

Got a problem with the voice recorder plugin. The screen comes up, only the start, stop, and email buttons show. when I click start, it says unfortunately, the process has stopped. Here is the info I got when I reported the crash to my developers console. Thanks! java.lang.IllegalStateException: Could not execute method of the activity at android.view.View$1.onClick(View.java:3598) at android.view.View.performClick(View.java:4091) at android.view.View$PerformClick.run(View.java:17036) at android.os.Handler.handleCallback(Handler.java:615) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5021) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at android.view.View$1.onClick(View.java:3593) ... 11 more Caused by: java.lang.RuntimeException: setAudioSource failed. at android.media.MediaRecorder.setAudioSource(Native Method) at com.cabinetdoororderingapp.La_voice_notes.startRecording(La_voice_notes.java:239) ... 14 more
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/24/13 02:13 PM (12 years ago)
Can you show us some lines before the crash? That would help us understand what contributed to the problem. Thanks!
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/24/13 02:16 PM (12 years ago)
What's it being tested on? Does the device have a microphone?
 
jandcproductions
Lost but trying
Profile
Posts: 28
Reg: Mar 22, 2013
Lugoff
580
like
04/24/13 02:31 PM (12 years ago)
Motorola Droid Razr HD Maxx , yes it has a microphone
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/24/13 02:54 PM (12 years ago)
Ah well, worth a try! It 'might' be an android bug on some devices, there seems to be an unusually large amount of references in google to the exact error: https://www.google.co.uk/#hl=en&sclient=psy-ab&q=java.lang.RuntimeException:+setAudioSource+failed&oq=java.lang.RuntimeException:+setAudioSource+failed&gs_l=serp.3..0j0i22i30l3.48525.48525.1.49465.1.1.0.0.0.0.143.143.0j1.1.0...0.0...1c..11.psy-ab.t5IjIisJ-f4&pbx=1&bav=on.2,or.r_cp.r_qf.&fp=a47449f7cdb2b94a&biw=1024&bih=605 Maybe contact the developer.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
04/24/13 07:20 PM (12 years ago)
If it's not already there, add this to your AndroidManifest.xml file: <uses-permission android:name="android.permission.RECORD_AUDIO" /> there should be other similar statements in there; add that near them. Cheers! -- Smug
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.