How do you launch an .apk on your Google Glass device that you installed via adb install?
Asked
Active
Viewed 1,423 times
3 Answers
1
Checkout this answer:
adb shell am start -n com.package.name/com.package.name.ActivityName
or
adb shell am start -n com.package.name/.ActivityName
-
1if you don't know the name of the package/activity you can try the additional answer I added to the answer linked above (mac/linux) – dljava Jun 25 '13 at 05:53
-
@dljava that is a neat hack :) – ina Jun 25 '13 at 16:56
-
To find out the name of your packages using adb shell pm list packages -f. also graphically if you use the chrome adb tool https://chrome.google.com/webstore/detail/adb/dpngiggdglpdnjdoaefidgiigpemgage?hl=en-US – StanleyZheng Mar 09 '14 at 21:49
1
The best option just now is use Launchy (https://github.com/kaze0/launchy) or use intent-filter to start your application when that intent-filter is called. For example:
<manifest ....
......
<application ....
......
<activity .....
.....
<intent-filter>
<action android:name="com.google.glass.action.ACTION_GO_TO_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
</manifest>

Jc Miñarro
- 1,391
- 10
- 18
0
If you don't know the Activity name:
Launchy no longer works with XE 16 or 17. Glass Launcher does work though since it uses the GDK.
Eclipse version here: https://github.com/justindriggers/Glass-Launcher
Android Studio version here: https://github.com/Splaktar/Glass-Launcher

Splaktar
- 5,506
- 5
- 43
- 74