Launch Speech Recorder app, click Record button, then the pop window shows:
Unfortunately, Speech Recorder has stopped.
Below is serial console logout:
E/AndroidRuntime( 3138): FATAL EXCEPTION: main
E/AndroidRuntime( 3138): java.lang.ExceptionInInitializerError
E/AndroidRuntime( 3138): at com.android.speechrecorder.SpeechRecorderActivity.setupRecording(SpeechRecorderActivity.java:158)
E/AndroidRuntime( 3138): at com.android.speechrecorder.SpeechRecorderActivity.access$000(SpeechRecorderActivity.java:41)
E/AndroidRuntime( 3138): at com.android.speechrecorder.SpeechRecorderActivity$1.onClick(SpeechRecorderActivity.java:90)
E/AndroidRuntime( 3138): at android.view.View.performClick(View.java:4084)
E/AndroidRuntime( 3138): at android.view.View$PerformClick.run(View.java:16966)
E/AndroidRuntime( 3138): at android.os.Handler.handleCallback(Handler.java:615)
E/AndroidRuntime( 3138): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 3138): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 3138): at android.app.ActivityThread.main(ActivityThread.java:4745)
E/AndroidRuntime( 3138): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 3138): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 3138): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
E/AndroidRuntime( 3138): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
E/AndroidRuntime( 3138): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 3138): Caused by: java.lang.UnsatisfiedLinkError: Library srec_jni not found; tried [/vendor/lib/libsrec_jni.so, /system/lib/libsrec_jni.so]
E/AndroidRuntime( 3138): at java.lang.Runtime.loadLibrary(Runtime.java:393)
E/AndroidRuntime( 3138): at java.lang.System.loadLibrary(System.java:535)
E/AndroidRuntime( 3138): at android.speech.srec.MicrophoneInputStream.<clinit>(MicrophoneInputStream.java:33)
E/AndroidRuntime( 3138): ... 14 more
W/ActivityManager( 2532): Force finishing activity com.android.speechrecorder/.SpeechRecorderActivity
On Samsung Origen board with Linaro Jelly Bean build:
https:/ /android- build.linaro. org/builds/ ~linaro- android/ origen- jb-gcc47- samsunglt- stable- blob/#build= 5
Launch Speech Recorder app, click Record button, then the pop window shows:
Unfortunately, Speech Recorder has stopped.
Below is serial console logout:
E/AndroidRuntime( 3138): FATAL EXCEPTION: main ExceptionInInit ializerError speechrecorder. SpeechRecorderA ctivity. setupRecording( SpeechRecorderA ctivity. java:158) speechrecorder. SpeechRecorderA ctivity. access$ 000(SpeechRecor derActivity. java:41) speechrecorder. SpeechRecorderA ctivity$ 1.onClick( SpeechRecorderA ctivity. java:90) view.View. performClick( View.java: 4084) view.View$ PerformClick. run(View. java:16966) os.Handler. handleCallback( Handler. java:615) os.Handler. dispatchMessage (Handler. java:92) os.Looper. loop(Looper. java:137) app.ActivityThr ead.main( ActivityThread. java:4745) reflect. Method. invokeNative( Native Method) reflect. Method. invoke( Method. java:511) internal. os.ZygoteInit$ MethodAndArgsCa ller.run( ZygoteInit. java:786) internal. os.ZygoteInit. main(ZygoteInit .java:553) system. NativeStart. main(Native Method) UnsatisfiedLink Error: Library srec_jni not found; tried [/vendor/ lib/libsrec_ jni.so, /system/ lib/libsrec_ jni.so] Runtime. loadLibrary( Runtime. java:393) System. loadLibrary( System. java:535) speech. srec.Microphone InputStream. <clinit> (MicrophoneInpu tStream. java:33) speechrecorder/ .SpeechRecorder Activity
E/AndroidRuntime( 3138): java.lang.
E/AndroidRuntime( 3138): at com.android.
E/AndroidRuntime( 3138): at com.android.
E/AndroidRuntime( 3138): at com.android.
E/AndroidRuntime( 3138): at android.
E/AndroidRuntime( 3138): at android.
E/AndroidRuntime( 3138): at android.
E/AndroidRuntime( 3138): at android.
E/AndroidRuntime( 3138): at android.
E/AndroidRuntime( 3138): at android.
E/AndroidRuntime( 3138): at java.lang.
E/AndroidRuntime( 3138): at java.lang.
E/AndroidRuntime( 3138): at com.android.
E/AndroidRuntime( 3138): at com.android.
E/AndroidRuntime( 3138): at dalvik.
E/AndroidRuntime( 3138): Caused by: java.lang.
E/AndroidRuntime( 3138): at java.lang.
E/AndroidRuntime( 3138): at java.lang.
E/AndroidRuntime( 3138): at android.
E/AndroidRuntime( 3138): ... 14 more
W/ActivityManager( 2532): Force finishing activity com.android.