There are a couple hacky ways to launch apps; I wrote a page describing them here.
As for voice triggering, there are two things you'll need to do.
First, add the following to your manifest as a child of your <activity>
element that you want to launch:
<intent-filter>
<action android:name="com.google.android.glass.action.VOICE_TRIGGER" />
</intent-filter>
<meta-data android:name="com.google.android.glass.voice_trigger" android:resource="@string/voice_menu_trigger" />
and create a corresponding string in the res/string.xml
.
Second, enable the native app voice build option on a rooted device (I describe all labs here and how to enable them here):
> adb shell setprop persist.lab.native_app_voice true
Note: This will only work if your Glass is in userdebug mode. Follow these instructions to put it into userdebug mode.