Glass Application Launch without Launchy

151 views Asked by At

I've written a Glass application using the Glass GDK and Eclipse, however I cannot get Launchy (the side-loader application) working correctly. I've been told it's been broken since the last XE release.

Therefore, how do I get my application to run on Glass? I can see my application when I run the adb command: adb shell pm list packages

REQUIREMENT : The micro USB connection must be free for an external camera that pairs with my application, therefore running it on Glass from within Eclipse is not an option.

Could someone provide a (hopefully easy) solution for this? I've heard that you can write a Glass application to launch another application, but am not sure how that's done.

2

There are 2 answers

2
Simon Marquis On

In order for the Launchy app to be able to detect your application, you must at least declare one Activity with these parameters:

<activity android:name=".YourActivity" android:icon="@drawable/your_icon">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>

Reference is here: https://github.com/kaze0/launchy/blob/master/src/com/mikedg/android/glass/launchy/AppHelper.java#L96 https://github.com/kaze0/launchy/blob/master/src/com/mikedg/android/glass/launchy/AppHelper.java#L97

0
Jeffrey Mixon On

If you are creating an Immersion Glass app (versus say a Live card), then you launch these with a voice command.

In development, you can create an arbitrary voice trigger, but to deploy a Glassware, you have to select from a predetermined list of voice commands or apply for a new one to be added to Glass.

I suggest you read the Immersion overview as it contains this information and more.