Google glass Immersive app图标无法显示

时间:2014-03-25 17:34:24

标签: google-glass google-gdk

我的应用图标已经消失,我已经将其发送到我正在使用的活动别名。我希望它们显示为子菜单语音命令,因此在清单中我添加了VOICE_TRIGGER操作。当我删除它时,图标会重新出现。

有关解决方法的任何想法吗?

这是一个别名的例子:

    <activity-alias
        android:label="@string/do_thing"
        android:name="@string/do_thing"
        android:theme="@android:style/Theme.DeviceDefault"
        android:immersive="true"
        android:targetActivity="com.x.MainActivity" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <action android:name="com.google.android.glass.action.VOICE_TRIGGER" />
        </intent-filter>

        <meta-data
            android:name="com.google.android.glass.VoiceTrigger"
            android:resource="@xml/voice_trigger" />
    </activity-alias>

3 个答案:

答案 0 :(得分:0)

菜单项的文字可能太长了?我之前已经有了这个,并且有很长的文字,我的图标也消失了。当我缩短菜单文本时,图标再次出现。

答案 1 :(得分:0)

这是因为你需要在这里使用语音命令: https://developers.google.com/glass/develop/gdk/reference/com/google/android/glass/app/VoiceTriggers.Command

如果您使用自己的语音命令,该图标将无法在XE18.3上显示

答案 2 :(得分:0)

我认为这是18.3(https://code.google.com/p/google-glass-api/issues/detail?id=559)的一个已知问题,并在7月8日左右固定。

所以希望你在18.3之后的任何版本中都不会再看到这个。

相关问题