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 (formally known as Wear OS by Google) extends the platform to a new generation of wearable devices like SmartWatches (wrist watches) and SmartBands. Wear OS lets you create wearable experiences for your existing Android apps that can be used without taking your phone out of your pocket.

The operating system was first announced by Google in March 2014 as Android Wear. In 2018 it was rebranded to Wear OS by Google.

Google defines Wear OS as:

Small, powerful devices, worn on the body. Useful information when you need it most. Intelligent answers to spoken questions. Tools to help reach fitness goals. Your key to a multiscreen world.

Developers can build everything from a completely standalone application (i.e. no need for the wearable to be paired with a phone), to an extended phone experience on your wrist, to custom watch faces.

The operating system supports a wide range of features (some also available in Android, some exclusive to Wear OS), such as:

  • Google Assistant
  • Heart Rate Monitor
  • GPS & Accelerometer
  • Voice input
  • Gesture controls
  • Notifications from a paired phone (or the wearable itself)
  • Complications API

Note: Google Glass has its own tag , although it's also a wearable device.


External Links

3009 questions
17
votes
0 answers

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 display other stuff while the user is speaking. So I…
Simon
  • 171
  • 6
17
votes
3 answers

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 to create video/avc codec instance Is it possible…
powder366
  • 4,351
  • 7
  • 47
  • 79
16
votes
4 answers

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 data to wear please HELP. This is what my receiver…
iZBasit
  • 1,314
  • 1
  • 15
  • 30
16
votes
1 answer

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 using PutDataMapRequest, which seems to be…
matiash
  • 54,791
  • 16
  • 125
  • 154
16
votes
5 answers

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 setOngoing(true). Any way to show these notifications on…
d3m0li5h3r
  • 1,957
  • 17
  • 33
14
votes
1 answer

Android Companion device pairing: how to use REQUEST_COMPANION_RUN_IN_BACKGROUND permission?

I'm currently testing Android companion device pairing and I'm not sure how to benefit from the REQUEST_COMPANION_RUN_IN_BACKGROUND permission. In one part of Google documentation is says: After the device is paired, the device can leverage…
14
votes
1 answer

Packaging handheld and wearable Android app together from CLI [NativeScript]

I'm trying to build a Phone+Wear app with NativeScript for Android. I have been able to build both separately and to run them on the Android emulator also. The problem is that I'm unable to package them properly, I mean, I can't package them…
14
votes
3 answers

Showing Android Wear style AlertDialog

I'm looking for a way to recreate the alert dialog in the Setting application of Android Wear: Which is swipe to dismissable. But instead, what I got is this: Just a barebone Android dialog. How can I show the AlertDialog in the Settings.apk…
NoImNotNull
  • 371
  • 3
  • 8
14
votes
2 answers

Android Wear generate two apk

I just created my first android wear app. I have two modules, mobile and wear. I have on my mobile module a dependency that points to the wear module as described on the documentation. When I generate the apk I end up with two apks, one called…
Chrystian
  • 977
  • 3
  • 11
  • 24
13
votes
3 answers

Exception while trying to access Google Fit API - The user must be signed in to make this API call

I am trying to set up a wearable app (for Huawei Watch 2) running on WearOS to provide a sort of continuous feed of Heart Rate (BPM) into a Google Fit account, which is read into another smartphone application. The issue comes when I am trying to…
Raul Acu
  • 171
  • 1
  • 8
13
votes
2 answers

Android wear: geofence - ApiException: 1000

I am building an Android app for Android Wear. For battery savings I am trying to use Geofences to track if you enter or exit a location. But I cannot get it working. First of all I am not sure if Geofences are supported on Android Wear?…
kevingoos
  • 3,785
  • 4
  • 36
  • 63
13
votes
2 answers

How to access Android Heart Rate Sensor RAW DATA? (reflected light, not the heart beat)

The android sdk on heart rate sensor only returns the calculated bpm which I have no interest. I need to access to android heart rate sensor RAW data, e.g. in terms of intensity of reflected value would be great. (because basically heart rate…
tcboy88
  • 1,063
  • 1
  • 9
  • 23
13
votes
1 answer

Disable android wear pending intent action confirmation

I'm currently working on an app with notification which are shown on a wear device. The notification contains an action binded onto the notification card (.setContentAction(0)). Everything is working fine, except that it shows a confirmation…
Lukas
  • 2,544
  • 2
  • 18
  • 33
13
votes
4 answers

Android Wear Emulator and ambient mode

How can I test ambient mode in Android Wear emulator? I need to see how does my app render on different watches while in ambient mode. Seems ambient mode is different on Moto 360 and Sony Smartwatch 3.
AVEbrahimi
  • 17,993
  • 23
  • 107
  • 210
12
votes
1 answer

Google Fit API: ApiException 17 (Fitness.CLIENT is not available on this device)

The Google Play documentation claims this is an API_NOT_CONNECTED code, however I have done everything I (think I) have to do in order to access the Google Fit API. Attempting to use Fit API on an Android Wear watch. I have a Main Activity, which…
drnessie
  • 877
  • 2
  • 12
  • 25