I have the same problem, both when I try to invoke the voice
recognition from the ApiDemos or from my own application. The
exception I get is "No Activity found to handle Intent
{ action=android.speech.action.RECOGNIZE_SPEECH (has extras) } ".
Probably, something is wrong with the settings of my emulator (I use
the one included in sdk1.5). Can anyone give us some help on what
could be the reason of the problem?

---
Best regards,
Katia

On Apr 16, 6:40 pm, zlu <zhao.lu...@gmail.com> wrote:
> I tried to run the voice recognition in api demo from sdk 1.5 and it
> crashed with this stacktrace:
>
> 04-16 10:32:00.725: INFO/ActivityManager(568): Starting activity:
> Intent { comp={com.example.android.apis/
> com.example.android.apis.app.VoiceRecognition} }
> 04-16 10:32:00.945: INFO/ActivityManager(568): Displayed activity
> com.example.android.apis/.app.VoiceRecognition: 215 ms
> 04-16 10:32:04.275: INFO/ActivityManager(568): Starting activity:
> Intent { action=android.speech.action.RECOGNIZE_SPEECH(has extras) }
> 04-16 10:32:04.295: DEBUG/AndroidRuntime(823): Shutting down VM
> 04-16 10:32:04.295: WARN/dalvikvm(823): threadid=3: thread exiting
> with uncaught exception (group=0x4000fe70)
> 04-16 10:32:04.295: ERROR/AndroidRuntime(823): Uncaught handler:
> thread main exiting due to uncaught exception
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):
> android.content.ActivityNotFoundException: No Activity found to handle
> Intent { action=android.speech.action.RECOGNIZE_SPEECH(has extras) }
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> android.app.Instrumentation.checkStartActivityResult
> (Instrumentation.java:1484)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> android.app.Instrumentation.execStartActivity(Instrumentation.java:
> 1454)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> android.app.Activity.startActivityForResult(Activity.java:2656)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> com.example.android.apis.app.VoiceRecognition.startVoiceRecognitionActivity
> (VoiceRecognition.java:79)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> com.example.android.apis.app.VoiceRecognition.onClick
> (VoiceRecognition.java:66)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> android.view.View.performClick(View.java:2179)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> android.view.View.onTouchEvent(View.java:3828)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> android.widget.TextView.onTouchEvent(TextView.java:6291)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> android.view.View.dispatchTouchEvent(View.java:3368)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> com.android.internal.policy.impl.PhoneWindow
> $DecorView.superDispatchTouchEvent(PhoneWindow.java:1707)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent
> (PhoneWindow.java:1197)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> android.app.Activity.dispatchTouchEvent(Activity.java:1993)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> com.android.internal.policy.impl.PhoneWindow
> $DecorView.dispatchTouchEvent(PhoneWindow.java:1691)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> android.view.ViewRoot.handleMessage(ViewRoot.java:1525)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> android.os.Handler.dispatchMessage(Handler.java:99)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> android.os.Looper.loop(Looper.java:123)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> android.app.ActivityThread.main(ActivityThread.java:3948)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> java.lang.reflect.Method.invokeNative(Native Method)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> java.lang.reflect.Method.invoke(Method.java:521)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
> (ZygoteInit.java:782)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
> 04-16 10:32:04.315: ERROR/AndroidRuntime(823):     at
> dalvik.system.NativeStart.main(Native Method)
> 04-16 10:32:04.335: INFO/Process(568): Sending signal. PID: 823 SIG: 3
> 04-16 10:32:04.335: INFO/dalvikvm(823): threadid=7: reacting to signal
> 3
> 04-16 10:32:04.415: INFO/dalvikvm(823): Wrote stack trace to '/data/
> anr/traces.txt'
> 04-16 10:32:12.225: DEBUG/dalvikvm(608): GC freed 9273 objects /
> 524264 bytes in 98ms
>
> Has anyone get this working?
>
> Zhao

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to