Using Android Voice Control launches my activity
I read this post on SO and I tried the code to start my own speech recognition activity. It worked !. So I am wondering how to configure the built-in voice command button action (hardware) to trigger the activity I wrote instead of the built-in voice search? I searched the net thoroughly including this site. But I couldn't find a solution. I know someone has it!
0
rahulserver
source
to share
1 answer
You should use SpeechRecognizer
instead RecognizerIntent
. It's a little trickier to use, but you have complete control.
For the code see my answer from here :
and my discussion of the differences between the two approaches here
+1
gregm
source
to share