thanks for that hint, but this still doesnt work with a wear device...
The big advantage of using Google Now an Android wear is: I only have to turn my wrist to start the google now Voice-input on my Moto360. So i dont have to push any button or something to Turn on my lights (they need a UDP message).
till now i am using tasker for Android Wear (which is great too) but i dont want to touch something for this task....
Any other Solutions?
If Activity.GetStartingIntent <> StoredIntent Then
StoredIntent = Activity.GetStartingIntent
Select Case StoredIntent.Action
Case ""
Case "com.google.android.gms.actions.SEARCH_ACTION"'Google now search
If StoredIntent.HasExtra("query") Then VR_Handle(StoredIntent.GetExtra("query"))' CODE TO HANDLE VOICE COMMAND
Case Else
LogColor("ACTION: " & StoredIntent.Action, Colors.Blue)
LogColor("EXTRAS: " & StoredIntent.ExtrasToString, Colors.Blue)
End Select
End If
Then with Google now, you say "Search [name of app] for [search string]"
And the query extra will have the [search string]
THAT was the catch. I didn't know the proper voice command.
Now for the bad news, if your app isn't a known-English word, or if your app is one of those things where you idiotically removed a vowel to sound cool, it won't detect the name properly.