You should probably catch ERROR_RECOGNIZER_BUSY in the onError handler:
@Override public void onError(int error) { switch (error) { case SpeechRecognizer.ERROR_RECOGNIZER_BUSY:
You are most likely (only?) To get this on request to start listening; unfortunately, I donโt know how to test this condition without trying (for example, I donโt think that you can previously detect that another listener of the process is active in order to remove the microphone button)
(When you stop listening, you will receive this error only if you try to somehow kill another listener of the process.)
BRFennPocock
source share