1. Download our Official Android App: Forums for Android!

Apps Recognizer Intent: onActivityResult() not called when no match

Discussion in 'Android Development' started by alderaan, Nov 28, 2010.

  1. alderaan

    alderaan Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    4
    Joined:
    Nov 28, 2010

    Nov 28, 2010
    4
    0
    5
    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.
     

    Advertisement

  2. alderaan

    alderaan Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    4
    Joined:
    Nov 28, 2010

    Nov 28, 2010
    4
    0
    5
    Anybody with a workaround or with the same problem?

    Thanks
     

Share This Page

Loading...