@juanjoc ===
the code you have put cannot work for a lot of reasons:
- Main one is that you have to create the speechRecognizer on the main ui and using context as parameter
- Second one is that your intent is undefined:see my post from your link
- Then there are two ways as i have explained in the post (from you link); either you use startActivityforResult (i have put code for that in the same link) and you get the google dialog, or you create your own recognitionListener (implementing the required methods when you create it) and you can see the result without the init google logo;but it is far more complicated
- Be sure to ask for permissions on runtime (record_audio)