How to run app on moto 360 from android studio


David Walton

I'm using the sample watch face app and followed all the steps (developer.android + multiple variations from this site) to get something running on the watch but no joy. Wondering if anyone can suggest.

The phone (moto 4G) is connected to the PC via USB. USB debugging is enabled in Settings, while "Bluetooth debugging" is in the Android Wear app. Paired watch (moto 360 2gen) with ADB debugging enabled and debugging over bluetooth enabled.

If I run the phone module part of the app, Android Studio lists the phone; if I run the wearable module, it doesn't provide a compatible device. The Adb devices command only lists phones. On the phone in the Android Wear app, when debugging over bluetooth it shows Host: Disconnected Target: Connected.

When I check on my phone in Settings, the watchFace app appears in Apps, but nothing appears on the watch (tried to change the watch face, nothing new; no new app).

I tried

 adb forward tcp:4444 localabstract:/adb-hub
 adb connect localhost 4444

But the second command gives "Failed to connect to localhost:4444...The connection could not be established because the target machine actively refused it (10061)". I also tried

 adb connect 127.0.0.1:4444

It does connect, but AS says it's offline.

Can someone help?

David Walton

After trying the above process several times, it seems that sometimes it works and sometimes it doesn't! I haven't noticed a difference yet, but suspect that (a) not enough time is allowed between connecting the phone and entering the adb command, or (b) the simple PC is running too slowly.

Related


Deploying Moto 360 from Android Studio is extremely slow

McKingway Once connected and listed as a target device, try running Wear Pair with the Android app directly on the Moto 360. ADB can see it and can communicate normally. However, the deploy message doesn't last long (about 10 minutes). Eventually, the app gets

Deploying Moto 360 from Android Studio is extremely slow

McKingway Once connected and listed as a target device, try running Wear Pair with the Android app directly on the Moto 360. ADB can see it and can communicate normally. However, the deploy message doesn't last long (about 10 minutes). Eventually, the app gets

Deploying Moto 360 from Android Studio is extremely slow

McKingway Once connected and listed as a target device, try running Wear Pair with the Android app directly on the Moto 360. ADB can see it and can communicate normally. However, the deploy message doesn't last long (about 10 minutes). Eventually, the app gets

Deploying Moto 360 from Android Studio is extremely slow

McKingway Once connected and listed as a target device, try running Wear Pair with the Android app directly on the Moto 360. ADB can see it and can communicate normally. However, the deploy message doesn't last long (about 10 minutes). Eventually, the app gets

Android Wear app not pushing to Moto 360

n4zg Hi, I'm having trouble pushing an app to Moto 360, I've been following this [solution][1] [1]: Android Wear app is not installed via phone and followed the Android devolopers page. I'm not sure if the problem is due to using a Galaxy Note 2 with SDK 19 or

Moto 360 Emulator for Android Wear

rmoh21 How do developers emulate Moto 360 for Android Wear? The resolution is Moto 320x290 - however, the default emulator emulates a watch with a resolution of 320x320 or 280x280, which presents some problems. Basically, I'm not sure how to design the watch f

Moto 360 Emulator for Android Wear

rmoh21 How do developers emulate the Moto 360 for Android Wear? The resolution is Moto 320x290 - however, the default emulator emulates a watch with a resolution of 320x320 or 280x280, which presents some problems. Basically, I'm not sure how to design the sur

Moto 360 Emulator for Android Wear

rmoh21 How do developers emulate the Moto 360 for Android Wear? The resolution is Moto 320x290 - however, the default emulator emulates a watch with a resolution of 320x320 or 280x280, which presents some problems. Basically, I'm not sure how to design the sur

My Wear app rotates and pans on Moto 360

SWAppDev I'm having two issues with the Wear app on the Moto 360. Works fine on other wear watches. The app is rotated 90° to the left (for info, I have android:screenOrientation="portrait" in my manifest, I don't know if it can be associated) The app is trans

My Wear app rotates and pans on Moto 360

SWAppDev I'm having two issues with the Wear app on the Moto 360. Works fine on other wear watches. The app is rotated 90° to the left (for info, I have android:screenOrientation="portrait" in my manifest, I don't know if it can be associated) The app is trans

My Wear app rotates and pans on Moto 360

SWAppDev I'm having two issues with the Wear app on the Moto 360. Works fine on other wear watches. The app is rotated 90° to the left (for info, I have android:screenOrientation="portrait" in my manifest, I don't know if it can be associated) The app is trans

My Wear app rotates and pans on Moto 360

SWAppDev I'm having two issues with the Wear app on the Moto 360. Works fine on other wear watches. The app is rotated 90° to the left (for info, I have android:screenOrientation="portrait" in my manifest, I don't know if it can be associated) The app is trans

Android Wear health sensor Moto360

Oleg As far as I know, moto360 has no sensor of type TYPE_HEART_RATE , called passive health sensor. The problem is that this health sensor doesn't provide any data compared to all the other sensors I've tried (eg gravity, accelerometer...). I've waited more t

Deploy Android Wearable Apps on Moto 360 for debugging

chocolate I'm trying to write a wearable app with custom layout notifications, but my emulator doesn't show custom wearable notifications correctly. (I only get a card with a black box, it even happens with the sample app notifications). I have a Moto 360, but

Deploy Android Wearable Apps on Moto 360 for debugging

chocolate I'm trying to write a wearable app with custom layout notifications, but my emulator doesn't show custom wearable notifications correctly. (I only get a card with a black box, it even happens with the sample app notifications). I have a Moto 360, but

Android Wear health sensor Moto360

Oleg As far as I know, moto360 has no sensor of type TYPE_HEART_RATE , called passive health sensor. The problem is that this health sensor doesn't provide any data compared to all the other sensors I've tried (eg gravity, accelerometer...). I've waited more t

Deploy Android Wearable Apps on Moto 360 for debugging

chocolate I'm trying to write a wearable app with custom layout notifications, but my emulator doesn't show custom wearable notifications correctly. (I only get a card with a black box, it even happens with the sample app notifications). I have a Moto 360, but

Android Wear health sensor Moto360

Oleg As far as I know, moto360 has no sensor of type TYPE_HEART_RATE , called passive health sensor. The problem is that this health sensor doesn't provide any data compared to all the other sensors I've tried (eg gravity, accelerometer...). I've waited more t

Android Wear health sensor Moto360

Oleg As far as I know, moto360 has no sensor of type TYPE_HEART_RATE , called passive health sensor. The problem is that this health sensor doesn't provide any data compared to all the other sensors I've tried (eg gravity, accelerometer...). I've waited more t

How to display a 360 degree panorama from an Android app

Libathos I want to display a panorama from my android app, the panorama is online and I loaded its url on the webview but it's not working. It's just part of it, it doesn't turn or turn upside down. I don't know where to start, can you point me in the right di

Moto 360 gyro malfunctioning after Android 5.1 update

Hyun Bin Since the Android 5.1 update (or not sure if that's always the case, but I don't doubt it), the Moto 360 no longer reports useful gyroscope data. I've verified this unusual behavior on three different Moto 360 devices. Here's a link to a Google Spread

Moto 360 gyro malfunctioning after Android 5.1 update

Hyun Bin Since the Android 5.1 update (or not sure if that's always the case, but I don't doubt it), the Moto 360 no longer reports useful gyroscope data. I've verified this unusual behavior on three different Moto 360 devices. Here's a link to a Google Spread

Moto 360 gyro malfunctioning after Android 5.1 update

Hyun Bin Since the Android 5.1 update (or not sure if that's always the case, but I don't doubt it), the Moto 360 no longer reports useful gyroscope data. I've verified this unusual behavior on three different Moto 360 devices. Here's a link to a Google Spread

How to run kotlin application from android studio?

user 2272600 I cloned this repo to my laptop : https://github.com/mozilla-mobile/focus-android Then I opened Android Studio and imported the project. (imported focus-android folder). But now the run button is greyed out. I tried editing the config and booting

Can I save sensor data from a wearable device (MOTO 360)?

Luyang Liu I'm developing an application on an android wearable device (MOTO 360) recently. My question is, is it possible to save sensor data as a file in the watch? Or do I have to send this data back to the handheld for saving? I try to File directory = Env

Can I save sensor data from a wearable device (MOTO 360)?

Luyang Liu I'm developing an application on an android wearable device (MOTO 360) recently. My question is, is it possible to save sensor data as a file in the watch? Or do I have to send this data back to the handheld for saving? I try to File directory = Env

Debugging on Moto 360

p I'm trying to debug via bluetooth on a Moto 360. I'm following the instructions below, but when I type adb forward tcp:4444 localabstract:/adb-hub; adb connect localhost:4444everything, adb goes through its list of available commands again. In the Debugging

List of sensors in Moto 360

Denver Coder 21 I can't seem to find complete information on what sensors are actually built into the Motorola Moto360. Where or how do I find it? Motorola doesn't have documentation on this, is this the convention? Zhongshan I'm also searching for the officia

Debugging on Moto 360

p I'm trying to debug via bluetooth on a Moto 360. I'm following the instructions below, but when I type adb forward tcp:4444 localabstract:/adb-hub; adb connect localhost:4444everything, adb goes through its list of available commands again. In the Debugging