Launch Android app with custom Google Now command
Asked Answered
C

1

8

I've taken a look at some other questions, but never saw the answer I was looking for. I can make an activity to receive system intents, such as incoming messages. Google Now intents like AlarmClock.ACTION_SET_ALARM can also be received by the app. How can I set up my app to receive a custom Google Now voice command? For example, in Google Now I want to say
Ok Google, [App name] [input data].
Then the app would be launched and would have the [input data] to handle. This can be accomplished with Tasker and AutoVoice, but how can I make my Android app listen for any Google Now command on its own?

Commentate answered 18/12, 2014 at 15:48 Comment(1)
Hello..did you found any way to do it...??Elsey
Q
-2

You can covert the voice to text. You can create a service or Broadcastrecevier to detect the voice input and do appropriate actions.

Covert voice to text link: http://www.androidhive.info/2014/07/android-speech-to-text-tutorial/

Quadrumanous answered 7/1, 2015 at 17:9 Comment(1)
In that example the user has to manually open the app and click on a button to trigger speech recognition. I was asking how to have the app listen for a custom command without having to open the app. Sort of like latching on to Google Now's listener.Commentate

© 2022 - 2024 — McMap. All rights reserved.