On Dec 28, 2011, at 6:03 PM, John Croft wrote:
> When I try to call MediaRecorder.SetAudioSource(AudioSource.Mic) I get the 
> following error and stack trace:
> 
> UNHANDLED EXCEPTION: Java.Lang.RuntimeException: Exception of type 
> 'Java.Lang.RuntimeException' was thrown.
...
> I/MonoDroid(20246):   --- End of managed exception stack trace ---
> I/MonoDroid(20246): java.lang.RuntimeException: setAudioSource failed.
...

How descriptive of Android.

You're getting the RuntimeException because Java is throwing a 
RuntimeException, and providing a rather terrible description for why it's 
being thrown. If you're fortunate, the Android Debug Log will contain 
additional information describing what the error actually is (look prior to the 
UNHANDLED EXCEPTION output). If not, you'll need to spelunk through the Android 
sources, probably starting in frameworks/base/media.

 - Jon

_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to