I initialize and start the service from the main thread as is required in hands-free mode, so that the user does not need to interact with the screen.
Intent speechIntent = new Intent(RecognizerIntent.ACTION_VOICE_SEARCH_HANDS_FREE);
mSpeechRecognizer = SpeechRecognizer.createSpeechRecognizer(MainActivity.this);
mSpeechRecognizer.setRecognitionListener(MainActivity.this);
mSpeechRecognizer.startListening(speechIntent);
Those lines were working no problem before the update, after I made the update I run the application again, and now the SpeechRecognizer wouldn't start (is not making the sound indicating that is listening), nor is recognizing anything. I do not know if this problem is specifically attached to the Nexus 6, but being one of the few devices currently with Android 6, and the update so recent then I do not know what is going on.
I tried changing the RecognizerIntent to ACTION_RECOGNIZE_SPEECH but that is not working either.
I tired debugging the app and is executing the comman, but the speech recognition is not starting.