Doronz Doronz - 1 year ago 115
Android Question

Unable to run sample Android Wear app on physical device

I am trying to figure out the Android Wear APIs. I've imported the sample WatchFace app provided in the SDK. I've set up my phone AND Moto 360 physical watch for debugging. They both show up in adb devices, and I'm able to select both when running the application. I followed the instructions from here.

However, when I go to my phone (and check the android wear app) to find the watchfaces included in the sample app, they are nowhere to be found. If I check the watch, they are also nowhere to be found.

As a side issue, I had initially had Compatible = No, missing uses-feature watch, when trying to run on my 360. Notably, that permission was not in the manifest of the sample app, once I added it to the manifest, Compatible = Yes for the wearable module on my 360.

I am now going to try to make it work on the emulator to see if that's the issue.

Edit: Able to get it to work on emulator.

Answer Source

I have gotten it to work, but I'm not sure what was the issue for it not working. If you are seeing this problem, this is what I would do to make sure you're setup properly:

  1. Ensure your watch is paired with your phone in Android Wear.
  2. Ensure both watch and phone have debugging enabled.
  3. You can follow the instructions here for how to setup bluetooth debugging. Make sure that your device shows up when you run adb devices.
  4. If you have both a Wearable module and Mobile module, make sure that if they are not set up to be launched via a launcher, that your run configurations are set to "Do not launch activity."
  5. Run your Mobile module on your device first.
  6. Then run your Wearable module on your wearable (it should show up as a device if you did everything right).
  7. Your app should show up on both the watch and the device now. You can push changes to one or the other from now on (depending on which one you modified, or both if necessary). If you run into issues, just run the mobile module first and then wearable module.

Note that even though compatibility may say "No, missing feature WATCH" for your mobile device (e.g. phone) when you run your Mobile module, it should still work!

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download