本文介绍了并列出命令玻璃器皿是不可见的菜单升级到XE16后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序正在使用的玩游戏命令,通过语音命令启动,并在谷歌眼镜的菜单显示。

My app is using the "play a game" command to be started by voice command and be visible in the Google Glass menu.

升级到XE16它从菜单中消失了,我找不到任何升级笔记的开发,使其工作后。

After upgrading to XE16 it disappeared from the menu and I could not find any upgrade notes for developers to make it work.

什么样的​​变化需求的声音进行启动命令的升级版本玻璃工作?

What changes needs to be made for the voice start command to work on the upgraded glass version ?

推荐答案

升级到XE16后,以下必须改变语音激活和菜单争取。

After upgrade to XE16 the following changes must be made for voice activation and enlisting in menu.

上市语音命令:

上市的命令是默认可用的命令和它们可以发现这里。

Listed commands are commands available by default and they can be found here.

触发的XML应从被改变
<触发关键字=@字符串/ play_a_game/> 结果
到:结果
<触发命令=PLAY_A_GAME/>

The triggering XML should be changed from:
<trigger keyword="@string/play_a_game" />
to:
<trigger command="PLAY_A_GAME" />

不公开的语音命令:

不公开的命令仅用于开发目的,你将不得不提交您的命令进行审批。

Unlisted commands are for development purposes only and you will have to submit your command for approval.

您不必更改触发的XML文件,但你必须将以下权限添加到您的的Andr​​oidManifest.xml

You don't have to change your triggering XML file, but you will have to add the following permission to your AndroidManifest.xml:

<uses-permission android:name="com.google.android.glass.permission.DEVELOPMENT" />

有关启动玻璃器皿更多信息:

这篇关于并列出命令玻璃器皿是不可见的菜单升级到XE16后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-23 11:46