I am Trying to launch a GDK App on my glass using a MenuItem on Timeline card inserted through Mirror API. I have Tired all the possible way to make it work there might be a logical bug I couldn't catch.
I followed these links as my starting point.
Opening GDK Glassware through Mirror API Glassware MenuItem
Menu Item for "OPEN_URI" not present in menuItems return
How can I start an intent from a card in Google Glass
Mirror API Code fragment.
List<MenuItem> menuItemList = new ArrayList<MenuItem>();
// Built in actions
menuItemList.add(new MenuItem().setAction("NAVIGATE"));
menuItemList.add(new MenuItem().setAction("DELETE"));
List<MenuValue> values= new ArrayList<MenuValue>();
//values.add(new MenuValue().setDisplayName("remember").setState("DEFAULT"));
values.add(new MenuValue().setDisplayName("remembering").setState("LAUNCHER"));
menuItemList.add(new
MenuItem().setAction("OPEN_URI").setPayload("exampleprotocol").setValues(values));
timelineItem.setMenuItems(menuItemList);
GDK App(Manifest file)
<service
android:name="com.example.rajeev.memory.ElephantService"
android:enabled="true"
android:exported="true"
android:icon="@drawable/ic_plus_50"
android:label="@string/app_name">
<intent-filter>
<action android:name="com.google.android.glass.action.VOICE_TRIGGER" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="exampleprotocol"/>
</intent-filter>
<meta-data
android:name="com.google.android.glass.VoiceTrigger"
android:resource="@xml/voice_trigger_start" />
</service>
However, I could launch google website using OPEN_URI Action with "Payload" :"https://www.google.com/?gws_rd=ssl"