ina
ina

Reputation: 19534

Google Glass - launching an apk installed via adb install

How do you launch an .apk on your Google Glass device that you installed via adb install?

Upvotes: 2

Views: 1455

Answers (3)

Splaktar
Splaktar

Reputation: 5894

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

Upvotes: 0

Jc Miñarro
Jc Miñarro

Reputation: 1411

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>

Upvotes: 1

Alain
Alain

Reputation: 6034

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

Upvotes: 1

Related Questions