{"id":909,"date":"2012-04-11T23:22:06","date_gmt":"2012-04-12T03:22:06","guid":{"rendered":"http:\/\/tim.cexx.org\/?p=909"},"modified":"2012-04-11T23:22:06","modified_gmt":"2012-04-12T03:22:06","slug":"solved-sl4a-force-close-when-calling-recognizespeech","status":"publish","type":"post","link":"https:\/\/tim.cexx.org\/?p=909","title":{"rendered":"Solved: SL4A force close when calling recognizeSpeech"},"content":{"rendered":"<p>Problem: SL4A crashes upon the first call to recognizeSpeech() : com.googlecode.android_scripting stopped unexpectedly (Force Close).<\/p>\n<p>The corresponding Android log via adb shell #logcat: <\/p>\n<p>D\/AndroidRuntime( 2785): Shutting down VM<br \/>\nW\/dalvikvm( 2785): threadid=1: thread exiting with uncaught exception (group=0x4<br \/>\n0018560)<br \/>\nI\/ActivityManager( 1429): Starting: Intent { act=android.speech.action.RECOGNIZE<br \/>\n_SPEECH } from pid 2785<br \/>\nE\/AndroidRuntime( 2785): FATAL EXCEPTION: main<br \/>\nE\/AndroidRuntime( 2785): java.lang.RuntimeException: Unable to start activity Co<br \/>\nmponentInfo{com.googlecode.android_scripting\/com.googlecode.android_scripting.ac<br \/>\ntivity.FutureActivity}: android.content.ActivityNotFoundException: No Activity f<br \/>\nound to handle Intent { act=android.speech.action.RECOGNIZE_SPEECH }<br \/>\nE\/AndroidRuntime( 2785):        at android.app.ActivityThread.performLaunchActiv<br \/>\nity(ActivityThread.java:1768)<\/p>\n<p>(etc.)<\/p>\n<p>Solution: Install Google&#8217;s free <a href=\"http:\/\/www.google.com\/mobile\/voice-search\/\">Voice Search app<\/a> from the app marketplace. This app provides the activity android.speech.action.RECOGNIZE_SPEECH.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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( [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_FSMCFIC_featured_image_caption":"","_FSMCFIC_featured_image_nocaption":"","_FSMCFIC_featured_image_hide":"","iawp_total_views":0,"footnotes":""},"categories":[4],"tags":[149,151,153,152,150],"class_list":["post-909","post","type-post","status-publish","format-standard","hentry","category-geek","tag-android","tag-force-close","tag-recognizespeech","tag-sl4a","tag-stopped-unexpectedly"],"_links":{"self":[{"href":"https:\/\/tim.cexx.org\/index.php?rest_route=\/wp\/v2\/posts\/909","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tim.cexx.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tim.cexx.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tim.cexx.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tim.cexx.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=909"}],"version-history":[{"count":2,"href":"https:\/\/tim.cexx.org\/index.php?rest_route=\/wp\/v2\/posts\/909\/revisions"}],"predecessor-version":[{"id":911,"href":"https:\/\/tim.cexx.org\/index.php?rest_route=\/wp\/v2\/posts\/909\/revisions\/911"}],"wp:attachment":[{"href":"https:\/\/tim.cexx.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=909"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tim.cexx.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=909"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tim.cexx.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}