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
8
votes
4 answers

Programmatically determine screen shape in Android Wear

I'm looking for a technique to determine in Java if the Android Wear device screen is round or rectangular. Note that this isn't just about layouts; my code actually needs to know which shape it's working with, because they're handled…
Sterling
  • 6,365
  • 2
  • 32
  • 40
7
votes
1 answer

OnCapabilityChanged working on phone but not on wearable

After carefully following the instructions in this post: How to detect when android wear device gets disconnected? I finally managed to get my phone to detect when the wearable is connected using onCapabilityChanged. I have followed the exact same…
HPage
  • 1,412
  • 20
  • 27
7
votes
0 answers

Wear OS and AlertDialog

I know that recomended way to show dialogs on wear is using AlertDialog (https://developer.android.com/training/wearables/ui/) but by default AlertDialog does not look good on round screens. I know I have to provide custom layout (see Showing…
Marcin
  • 1,113
  • 1
  • 11
  • 33
7
votes
2 answers

Wearable MessageAPI onMessageReceived never hit, different devices id's

Trying to send a message from an emulated mobile device to an emulated wear device. I'm able to pair the wear device through the Android Wear app and verify that onPeerConnected of the wear device is hit (onMessageReceived isn't). Using two code…
Kris B
  • 3,436
  • 9
  • 64
  • 106
7
votes
0 answers

Android Wear 2.0.4 fails to find class "com.google.android.aidl.BaseStub"

My Wear project (WatchFace) fails to run using Android Wear 2.0.4 where it builds and runs successfully with Android Wear 2.0.3. java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/aidl/BaseStub; …
karora
  • 1,223
  • 14
  • 31
7
votes
1 answer

Project depends on com.google.android.support:wearable:2.0.2

I've created a demo wear project with android studio without touching anything. In build.Gradle this error occurs, although I find curious that it lets the app compile. Project depends on com.google.android.support:wearable:2.0.2, so it must also…
user2983041
  • 1,761
  • 4
  • 19
  • 31
7
votes
3 answers

How to Create a curved scrollbar in android wear 2.0?

I am using WearableRecyclerView to create a curved layout,but the default scrollbar is still vertical.Is there a way to create a curved scrollbar like android wear 2.0 launcher?
fang jack
  • 71
  • 1
  • 2
7
votes
3 answers

Can't install my app on wear

I tried to add a wear module to my existing app, tried a lot of solutions, but can't figure out why my app is not being installed on my watch. What I tried : First, Manual packaging with my app :…
user2058839
7
votes
4 answers

Bitmap scale destroy quality

I have made a Watch Face for Android Wear. But the problem is image scaling. Images for background, markers and gadgets are of reduced quality when I resize them. For example, I put 480x480 background image in drawable-nodpi folder (I have tried…
filipst
  • 1,547
  • 1
  • 30
  • 55
7
votes
1 answer

In Android Studio, building an Android Wear project, how can I include the same file in both modules

I am successfully building an Android Wear watch face and connected app on the mobile device. The problem is that I have several resource and class files that are referenced in both the mobile and wear modules. The skeleton app I built this from…
Opus1217
  • 723
  • 4
  • 17
7
votes
0 answers

Using resources (strings) from different Module in xml

at the moment I have two apps. A Phone/Tablet-app and an Wear-app which works without the phone and it has the same logic as the Phone/Tablet app. To make development easier I want to put them in one app so I don't have to change code twice. A help…
mcd
  • 106
  • 2
  • 10
7
votes
0 answers

Android instrumentation tests using multiple emulators

I have an Android and Android Wear app that I would like to test end-to-end in a automated real life scenario. I want to run two emulators, one with Android app and second with the Wear app. Probably by using Espresso framework to control each…
Ritave
  • 1,333
  • 9
  • 25
7
votes
0 answers

Android Wear project with multiple flavour dimensions

The problem We encountered an issue with a project that has multiple (2) product flavour dimensions and a wear module. On building a release we get no compile errors and the phone app works but the wear app is never synced to watch. Code…
7
votes
1 answer

WearListenerService onDataChanged strange behavior

I want to make bidirectional data transfer between Android Wear and Handheld. All seems to be good except triggering onDataChanged on Handheld. It triggers only then I plug in\out USB cable, connected to the PC. So I don't understand why it's…
Sergey Grabak
  • 183
  • 1
  • 12
7
votes
2 answers

BoxInsetLayout doesn't work

I created sample android wear activity project in android studio v1.2.2. I deleted WatchViewStub and used this example to create activity with BoxInsetLayout. But BoxInsetLayout doesn't work correctly on Round Device. And I tested this on moto 360…
Kiryl Bielašeŭski
  • 2,663
  • 2
  • 28
  • 40