MikeR
MikeR

Reputation: 93

Should an android wear app self-install from Eclipse?

I have developed an android wear app and corresponding mobile app (as per https://developer.android.com/training/wearables/apps/packaging.html) using Eclipse. My cell phone and wearable (Zen watch) are of paired over Bluetooth and working fine. I attach my cell phone to my development PC via USB (with debug on). By running my cell phone app from Eclipse, selecting the hardwired cell phone as the target device, should the wearable app install on the wearable device (assuming I packaged it correctly)?

Upvotes: 0

Views: 262

Answers (1)

Fat Russell
Fat Russell

Reputation: 196

Wear apps will not install automatically with the mobile/handheld installation when signing apps with a debug key while developing. So when you build, you are signing with a debug key. See the "Note" at the top of the page you reference in your question (https://developer.android.com/training/wearables/apps/packaging.html).

You have two options to install to the Wearable

  1. You can install directly to the Wear unit by debugging over Bluetooth. This article does a good job explaining how to do this https://developer.android.com/training/wearables/apps/bt-debugging.html
  2. You can sign your app as if you were ready to release it and then install to your mobile handheld using "adb install my-mobile-app.apk"

Of course #2 only works given you've followed the rules at the link you mention above - https://developer.android.com/training/wearables/apps/packaging.html.

Upvotes: 1

Related Questions