Detecting whether Glassware was launched via voice command or the touch menu

妖精的绣舞 提交于 2019-12-01 09:20:00

问题


Is it possible to have different behaviors when a glassware is launched via "OK Glass" voice command vs touch menu selection? Specifically we are trying to prompt voice recognition if the glassware is launched with "OK Glass" voice command, otherwise go direct to the glassware if it is launched from the touch menu. Or, is there a way for an app to know in which way it was launched? We are trying to emulate what Google Play Music Glassware does.


回答1:


The GDK does not yet provide a way to do this. If you would like to see this feature added, please file an enhancement request in our issue tracker!




回答2:


There is no published standard way. Perhaps you could explore the call stack on entry (e.g. look at what a stacktrace would produce for the different states?



来源:https://stackoverflow.com/questions/22056344/detecting-whether-glassware-was-launched-via-voice-command-or-the-touch-menu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!