Questions tagged [wear-os]
Wear OS is an operating system extended from the Android platform that powers a new generation of wearable devices.
wear-os
3,111
questions
109
votes
5
answers
72k
views
How to request permissions from a Service in Android Marshmallow
In Android Marshmallow, permissions should be requested at runtime when they are needed, instead of all at once when an app is installed. However, I can only seem to request permissions from an ...
55
votes
9
answers
30k
views
Pairing Android and Wear emulators
I don't have an Android Wear, nor do I have a phone running 4.3. Is there a way to connect the JB 4.3 emulator and Android Wear emulator for app development?
55
votes
1
answer
1k
views
Game Command format between bluetooth controller and console
I am creating an Android project, in which I have to make an android wearable smartwatch as a game controller that can send commands to games running on a handheld device connected to that smartwatch ...
54
votes
2
answers
1k
views
Android Wear notification prevent blinking icon when updating
I can't seem to be able to create an Android Wear notification that updates with out blinking the app icon whereas the same code works fine on an Android phone.
Most referenced solutions talk about ...
51
votes
3
answers
51k
views
Android compile error; Java plugin has been applied, not compatible with android
So I've made a wearable application where I can control a robot-car with the buttons on screen with the MessageListenerService. After trying to build the project, I had some problems where it asked me ...
47
votes
4
answers
129k
views
Fail to create Android virtual Device, "No system image installed for this Target"
Unable to create Android Virtual Device
i follwed this link.
I installed all ARM images for each Android more than 4.0.
I installed intel & MIPs as well.
But, still my AVD Manager is saying "NO ...
46
votes
10
answers
60k
views
"Failed to resolve: com.android.support:support-v4:26.0.0" and other similar errors on Gradle sync [duplicate]
I have just created a new Android Studio project for both Android Mobile and wear. The initial gradle build failed because I am getting several errors-
Error: Failed to resolve: com.android.support:...
40
votes
3
answers
18k
views
GoogleApiClient onConnected never called on Wearable device
I have a wearable device that I'm trying to connect to the GoogleApiClient but the callbacks are never called (onConnected, onConnectionSuspended or onConnectionFailed). Everything else is working ...
36
votes
9
answers
26k
views
Not able to connect Android Wear Emulator with Device
I am not able to connect Android Wear Emulator with my device.I have HTC One device which has 4.4 (KitKat OS).
I follow below link :
Setting up Android Wear
But, when I execute the line adb -d ...
34
votes
6
answers
11k
views
Android Wear Project Gradle Sync Fails
I created a new project in Android Studio 0.8 in order to start integrating Android Wear into one of my apps. I create a new project and include the Wear form factor, but when I try to sync I get:
...
34
votes
2
answers
14k
views
How to send notification from handheld to wear to open Activity on wear device
I'm wondering if it is possible to send notification from handheld (android phone) to wear device to open Activity on wear device? What I want to do is as following.
So far, I checked the following ...
34
votes
2
answers
1k
views
Random app crashes on Android Wear 5.0.X
I have a question regarding the newest Android Wear release (5.0.2):
Debugging apps with that version really is a pain because very often the apps crash directly on startup (or soon after that). It ...
32
votes
9
answers
15k
views
Trouble debugging android wear over bluetooth - Unable to connect to localhost
I can't debug over bluetooth with my Moto360.
To start I have enabled "ADB debugging" and "Debug over Bluetooth" on the Moto360. I have also enabled "Debugging over Bluetooth&...
32
votes
4
answers
37k
views
"No, missing feature: WATCH" when I try to run my smartphone app with wear app?
I have a smartphone app with a wear app that has been packaged inside of it, similar to the first two steps of this section:
https://developer.android.com/training/wearables/apps/packaging.html#...
32
votes
8
answers
38k
views
Google Play services out of date. Requires 11011000 but found 10289574
I've been strugling with this problem about week now. Been searching similar topics about this but still can't resolve my problem.
The Prolem is that when i'm trying to run my program on Polar m600 ...
30
votes
7
answers
26k
views
Uninstall Android Wear App From Real Device
Might be a noob question but for the life of me I can't figure out how to uninstall an app from my Samsung Gear Live.
I need to uninstall the debug version so I know I have a fresh production version ...
30
votes
1
answer
2k
views
Android wear project with 3 flavors, 3 buildTypes and 2 applicationIdSuffixes
When I build my project after trying to combine wearApp flavors and buildTypes with applicationIdSuffixes, i get the following error message:
Error:Execution failed for task ':app:...
28
votes
2
answers
9k
views
What's the best practice for sharing classes between a Wear and Android app?
I'm using a class that I serialize in my Android Phone app, and deserialize in my Android Wear app. They are both in the same Android Studio Project, and are deployed as one.
How can I share the ...
27
votes
5
answers
50k
views
Gradle error: configuration declares dependency which is not declared
I'm making my first android wear app, but I can't get Android Studio working.
First I got the error
"Project with path ':wear' could not be found in project ':mobile'.
This was resolved by adding "...
24
votes
7
answers
24k
views
Sending messages from Android Wear to host device
I'm writing a custom Android Wear application that's supposed to fire a one-off message to the connected host device (the phone). Digging through the API, I found the following tutorial that should ...
24
votes
6
answers
18k
views
How to detect if android device is paired with android wear watch
I am creating an android wear app that extends push notifications. My app downloads approximately 10 images from a server when a push notification comes in and displays these additional images on the ...
24
votes
1
answer
830
views
Launch an Android Wear app with a “Start …” voice command
I try to launch my wear app by Start voice command. I followed the documentation
Adding Voice Capabilities. But when I try to launch the app by saying (OK Google) "Start my app" I receive the Google ...
23
votes
3
answers
8k
views
"Default activity not found" for a wearable app created with Android Studio template
I've created a wear app and used the Android Studio template to create it and haven't made any changes other than to drag and drop a button onto the MainActivity of the wear app.
When I try and run ...
23
votes
4
answers
6k
views
Wear App and with custom build type with applicationIdSuffix
I have an app where I'd like to add an Android Wear app extension. The main app has three build types (debug, beta and release). Beta builds have an applicationIdSuffix which allows me to install the ...
23
votes
3
answers
8k
views
Android wear : how to support existing app to Android wear
I have installed new android wear SDK. Also have downloaded Android wear app from play store on my phone. I am able to connect my phone with Android wear simulator.
Now I want to give android wear ...
23
votes
1
answer
8k
views
Caught a RuntimeException from the binder stub implementation
I'm running into this RuntimeException and having a hard time debugging it:
W/Binder﹕ Caught a RuntimeException from the binder stub implementation.
com.google.android.gms.common.internal.safeparcel....
22
votes
5
answers
43k
views
android studio error : missing feature: WATCH
I have tried to run one simple application with android studio on my smartwatch and I've got the following message:
my smartwatch runs android 4.4.2 which has API level 19
things I have tried and ...
22
votes
1
answer
9k
views
Android exact Alarm is always 3 minutes off
I have an app which uses the AlarmManager to regularly wake up the phone at full hour and send a message to an Android Wear watch which than makes a short vibration. I have two users with a Samsung ...
22
votes
7
answers
5k
views
Is there any way to detect if the clock is round?
Might be I missed something but is there any flag for knowing if the clock is round or square?
I could imagine that this is important if you want to design the background of the notifications.
21
votes
7
answers
12k
views
Android Wear App not installed
we release our first Wearable Application today but sadly this one isn't get installed automatically as it should.
We double checked the APK and the wearable apk is present but never hits the watch. ...
20
votes
3
answers
14k
views
How to disable the android wear back swipe?
I am creating a Android Wear app that has an touch area. The user is suppose to be able to move it's finger in all directions over the screen (Think touchpad on your laptop). However the back swipe ...
20
votes
8
answers
15k
views
Android Wear app not installing through handset
I'm trying to get a wearable app installed through an Android handset using the 'Package with Android Studio method' found here but it's not working. The apk is never installed to the wearable device. ...
19
votes
4
answers
17k
views
Debugging on Moto 360
I am trying to get debugging over Bluetooth working on my Moto 360. I am following these instructions but when I put in adb forward tcp:4444 localabstract:/adb-hub; adb connect localhost:4444 all that ...
19
votes
1
answer
7k
views
Android: How to get Google Fit data from Wearable device?
I'm following the same steps described here (the Google Fit client connection part is working fine).
final DataType dataType=TYPE_STEP_COUNT_DELTA;
DataSourcesRequest requestData = new ...
18
votes
7
answers
10k
views
WearableListenerService, onDataChanged() is not called
I followed the tutorial to invoke a Wearable activity from phone, posted here How to send notification from handheld to wear to open Activity on wear device. However, I grab the source code from the ...
18
votes
1
answer
11k
views
Make the wearable vibrate from within an android wear app [closed]
I'm writing a simple wearable app to my LG watch that sends vibrations to the watch
on constant intervals and show some mock data.
Although I've looked for an answer, I could't find a way to make the ...
18
votes
3
answers
5k
views
Android Wear WearableListView in a GridViewPager
I'm building an Android Wear application which I would like to present as a few pages that can be swiped across horizontally.
For this I am using a GridViewPager and associated ...
18
votes
3
answers
4k
views
Round Android Wear Emulator is Square
The title and picture say it all--my round android wear emulator shows the rect layout. I'd appreciate any tips that help me get the round emulator to show the correct interface.
Created AVD using ...
18
votes
4
answers
2k
views
Android wear application packaging fails with flavours
I have an application that includes a wear app. All works fine on debug tested with a real device. I can alse create the release apk that packs the wear apk inside it. But only if there is only one ...
18
votes
3
answers
21k
views
Is it possible to create an Android Wear app with react native
I have had a play with react native creating ios apps but have not tried android yet. With android you also get 'android wear' for watches etc, will react native work creating apps for those devices?
17
votes
3
answers
6k
views
Screen record Android Wear
When executing:
adb -s localhost:4444 shell screenrecord /sdcard/dcim/rec.mp4
I get:
ERROR: unable to create video/avc codec instance
WARNING: failed at 280x280, retrying at 1280x720
ERROR: unable ...
17
votes
2
answers
49k
views
Change Android wear weather to Celsius? [closed]
How do I change the temperature to 'Celsius' on android weather native app?
There is not much around for this particular issue so, I decided to post my own solution.
17
votes
1
answer
7k
views
WearableRecyclerView Android Wear OS
I'm trying to create a menu similar to the default Wear OS one within my app:
Various other methods are now deprecated, and unfortunately the Android documentation https://developer.android.com/...
17
votes
5
answers
9k
views
Android Wear Enable ADB Connection Over WiFi TCP/IP
I'm trying to develop an app for Android Wear. In order to test my app on my Moto 360 watch (which has no USB port):
I connected my phone to my computer via USB.
I opened the Android Wear companion ...
17
votes
6
answers
41k
views
Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 25 declared in library [Wear App sub-manifest]
I'm trying to add a wearable module to my existing android (min sdk version 16) app.
If I run the app (release mode), I'm getting this error:
Error:Execution failed for task ':app:...
17
votes
4
answers
2k
views
Moto 360 Deploying from Android Studio extremely slow
Trying to run a wear counterpart of an Android app directly on Moto 360, after having it connected and listed as a target device.
ADB can see it and communicates fine.
However, the deployment ...
17
votes
0
answers
1k
views
SpeechRecognizer on Android Wear
The app I'm currently working on requires simple speech recognition of single words. However, I don't want to use:
startActivityForResult() using the ACTION_RECOGNIZE_SPEECH
because I need to ...
16
votes
4
answers
7k
views
Unable to push data to android wear (Emulator)
I have been trying to push data to the android wear emulator. But all in vain. My listener on the emulator is not receiving any calls whatsoever. If anyone else has tried working on wear and pushing ...
16
votes
1
answer
5k
views
What is the Uri for Wearable.DataApi.getDataItem() after using PutDataMapRequest?
I'm testing the Wearable Data Layer Api as described in the Android tutorial.
There is a low level API based around DataItem, which can have only a byte array as payload, so the training recommends ...
16
votes
5
answers
4k
views
Show ongoing notifications in Android Wear
I've been playing around with Android Wear and making some dummy apps. What I've noticed is that Android Wear doesn't seem to show the notifications that are ongoing,i.e., notifications with ...