Inicie Google Now en el reconocimiento de música
Frecuentes
Visto 4,017 veces
3
Is there a way to automatically start Google Now on Music Recognition? I'd need it to create a DashClock extension that start Music Recognizing...
As far as I speak, I can start package com.google.android.googlequicksearchbox successfully but I cannot start voice input... I would not use startActivity for result since I would not need a result, I would really just start Google Now voice recognition feature, is there a way to do it programmatically?
2 Respuestas
4
Otherwise, to simply launch Google Now Song Recognition service (without having to tap on "Listen to Music", to be clear), you can create an Intent with the string
"com.google.android.googlequicksearchbox.MUSIC_SEARCH";
that would launch directly the proper interface.
Respondido el 12 de Septiembre de 13 a las 10:09
2
I just found a way to achieve my goal:
Intent intent = new Intent();
intent.setClassName("com.google.android.googlequicksearchbox","com.google.android.googlequicksearchbox.VoiceSearchActivity");
starting this intent will bring up voice search window.
Respondido el 09 de Septiembre de 13 a las 22:09
I'm getting this error when I try your code. android.content.ActivityNotFoundException: Unable to find explicit activity class {com.google.android.googlequicksearchbox/com.google.android.googlequicksearchbox.VoiceSearchActivity};
¿Qué me estoy perdiendo? - carloserivera
Have you got Sound Search installed? Otherwise, it will fail :-) You can find Sound Search here play.google.com/store/apps/details?id=com.google.android.ears - tiwiz
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas android voice-recognition google-now or haz tu propia pregunta.
stackoverflow.com/a/20995284/1318946 - Pratik Butani