Reputation: 121
For my GDK based app, how can I specify the string to display when user taps on the "ok glass" screen and flips through the menu items? e.g. there is "Take Picture" in that menu but the corresponding voice trigger string is "take a picture" as we can see when speaking out "ok glass".
https://developers.google.com/glass/develop/gdk/input/voice#launching_glassware shows how to specify the voice trigger string.. is there an equivalent to specify the menu item string as well? For my app the voice trigger is longer than what fits in the menu screen so I'd like to use a shorter string for menu just like the 'Take Picture' case.
Upvotes: 3
Views: 666
Reputation: 6429
For custom voice triggers (i.e., not the built-in ones), the strings for the touch menu and voice menu will currently be the same.
If you have multiple applications installed that respond to the same voice trigger, then a disambiguation menu will appear. The string that appears in this menu is the android:name
attribute of the <activity>
or <service>
tag that has the voice trigger, or of the <application>
if the activity/service doesn't specify one.
Upvotes: 1