Solved: SL4A force close when calling recognizeSpeech

Problem: SL4A crashes upon the first call to recognizeSpeech() : com.googlecode.android_scripting stopped unexpectedly (Force Close).

The corresponding Android log via adb shell #logcat:

D/AndroidRuntime( 2785): Shutting down VM
W/dalvikvm( 2785): threadid=1: thread exiting with uncaught exception (group=0x4
I/ActivityManager( 1429): Starting: Intent { act=android.speech.action.RECOGNIZE
_SPEECH } from pid 2785
E/AndroidRuntime( 2785): FATAL EXCEPTION: main
E/AndroidRuntime( 2785): java.lang.RuntimeException: Unable to start activity Co
tivity.FutureActivity}: android.content.ActivityNotFoundException: No Activity f
ound to handle Intent { act=android.speech.action.RECOGNIZE_SPEECH }
E/AndroidRuntime( 2785): at


Solution: Install Google’s free Voice Search app from the app marketplace. This app provides the activity android.speech.action.RECOGNIZE_SPEECH.

Tags: , , , ,

Leave a Reply