There are many tutorials online for adding voice recognition to an android app. They are often confusing and the publishers of the coding are never available for questions.
Really good tutorial. Well done.
To complete a little bit more :
You need to add permission to your manifest as follow
Also voice does not work if you have
launchMode="singleInstance" or launchMode="singleTask" it looks like it should be "standard"
launchMode="singleInstance"
launchMode="singleTask"