gotev / android-speech

Android speech recognition and text to speech made easy
http://gotev.github.io/android-speech/
Apache License 2.0
477 stars 156 forks source link

Not allowed to bind to service Intent #3

Closed gotev closed 7 years ago

gotev commented 7 years ago

When Google Voice typing is not enabled, speech library throws this exception:

java.lang.SecurityException: Not allowed to bind to service Intent { act=android.speech.RecognitionService cmp=com.mediatek.voicecommand/.service.VoiceWakeupRecognitionService }

Make it easier to understand by catching it and throwing it as a GoogleVoiceTypingDisabledException