November 28th, 2010, 03:41 PM
|
#1 (permalink)
|
|
New Member
Join Date: Nov 2010
Posts: 4
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
|
Recognizer Intent: onActivityResult() not called when no match
Hi everybody,
I have the following issue. I am starting a recognizer intent activity in order to detect speech using the "startActivityForResult" method. I have also an "onActivityResult" method listening for results from the recognizer activity. It works and it detects my speech. The problem is that it is only called when everything is ok or when i cancel the operation, but it is not called if it doesn't find a matching text "RecognizerIntent.RESULT_NO_MATCH" or in the rest of wrong cases "RecognizerIntent.RESULT_........"
What is happening? Application is Android 2.1 and I have tested on a Android 2.2 device.
Thanks in advance.
|
|
|