I'm trying to use my application to use voice command like "ok, glass" -> power_ball(home screen) -> game1(cardview) -> game2(cardview) ->
I tried lot of examples but I only manage to get into one screen(home screen)....From a home screen how can I call another cardviews using voice command
Here what I have tried so far
manifest:
<activity
android:name="info.androidhive.glassmenu.AboutActivity"
android:label="@string/action_about" />
<intent-filter>
<action android:name="com.google.android.glass.action.voice_trigger" />
<action android:name="android.intent.action.MAIN" />
</intent-filter>
<meta-data
android:name="com.google.android.glass.VoiceTrigger"
android:resource="@xml/voice_trigger_start" />
<activity
android:name="info.androidhive.glassmenu.SettingsActivity"
android:label="@string/action_settings" />
<intent-filter>
<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_start" />
String.xml
<!-- App start voice command -->
<string name="start_command">do</string>
<string name="start_prompt1">check1</string>
<string name="start_prompt1">check2</string>
<string name="start_prompt1">check3</string>
Please advice what must I do from here.
Take a look if this is useful for you
I was able to get a menu on my screen when saying ok glass in the app itself with the menu options that I've entered in my xml file.
be sure to add <uses-permission android:name="com.google.android.glass.permission.DEVELOPMENT" />
to your manifest. It's for using custom commands that glass hasn't accepted yet.