I'd say that your error is coming from one of lines 74, 30, 28 or 88. At
least that's what the LogCat says. If you look closer, you will notice that
your prepare() method has failed to work and has given you an exception.

12-05 16:11:39.442: ERROR/AudioRecordTest(309): prepare() failed
> 12-05 16:11:39.442: ERROR/MediaRecorder(309): start called in an
> invalid state: 4
> 12-05 16:11:39.512: DEBUG/AndroidRuntime(309): Shutting down VM
> 12-05 16:11:39.512: WARN/dalvikvm(309): threadid=1: thread exiting
> with uncaught exception (group=0x4001d800)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309): FATAL EXCEPTION: main
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309):
> java.lang.IllegalStateException
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309):     at
> android.media.MediaRecorder.start(Native Method)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309):     at
> com.privacygram.activity.AudioCapturing.startRecording(AudioCapturing.java:
> 74)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309):     at
> com.privacygram.activity.AudioCapturing.onRecord(AudioCapturing.java:
> 30)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309):     at
> com.privacygram.activity.AudioCapturing.access$0(AudioCapturing.java:
> 28)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309):     at
> com.privacygram.activity.AudioCapturing$RecordButton
> $1.onClick(AudioCapturing.java:88)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309):     at
> android.view.View.performClick(View.java:2408)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309):     at android.view.View
> $PerformClick.run(View.java:8816)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309):     at
> android.os.Handler.handleCallback(Handler.java:587)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309):     at
> android.os.Handler.dispatchMessage(Handler.java:92)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309):     at
> android.os.Looper.loop(Looper.java:123)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309):     at
> android.app.ActivityThread.main(ActivityThread.java:4627)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309):     at
> java.lang.reflect.Method.invokeNative(Native Method)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309):     at
> java.lang.reflect.Method.invoke(Method.java:521)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309):     at
> com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:868)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309):     at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
> 12-05 16:11:39.722: ERROR/AndroidRuntime(309):     at
> dalvik.system.NativeStart.main(Native Method)



> i have written all permissions in manifest.xml....
> can u plz help me wat am i supposed to do??
> thnk u....


You should also checkout this book. It will help you in life:
http://www.amazon.com/Little-Oxford-English-Dictionary-Eighth/dp/0198604521

Thanks

-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to