Posts Tagged ‘force close’

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
0018560)
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
mponentInfo{com.googlecode.android_scripting/com.googlecode.android_scripting.ac
tivity.FutureActivity}: android.content.ActivityNotFoundException: No Activity f
ound to handle Intent { act=android.speech.action.RECOGNIZE_SPEECH }
E/AndroidRuntime( 2785): at android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:1768)

(etc.)

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

This blog is protected by Dave\'s Spam Karma 2: 534577 Spams eaten and counting...