Questions tagged [android-wear-complication]

Complications are elements that can be added to an Android Wear watch face to display additional data, and optionally provide direct access to apps/features on the wearable.

The Complications API provides an easy way to display data, from a variety of sources, in a watch face. It also enables app developers to easily make data available to be consumed by watch faces. More details can be found in the official documentation.

35 questions
5
votes
1 answer

'Unexpected namespace prefix "app"' in Android wear module

I added a new android wear module based on this Google doc but I am getting the error described in the title. Here is my layout.
The_Martian
  • 3,684
  • 5
  • 33
  • 61
4
votes
1 answer

Android wear complication update on date change

First of all, I have to say that I am a a newbie in terms of Wear OS programming (and with very little knowledge in Java programming in general :( ). I would like to make a complications that updates when the date changed (whenever the change is…
Mick Corp
  • 41
  • 3
4
votes
1 answer

How do I draw icons on a watch face from an Android wear complication provider?

Using the Complications API there's an icon type, but when it comes to drawing the icon I'm not sure how to do it. When I'm drawing the actual watch face there doesn't seem to be a drawIcon method. E.g. something like canvas.drawIcon(icon). I can…
3
votes
1 answer

Unknown complication type on default Galaxy Watch 4 face

I am trying to investigate and duplicate some complication types I see on Samsung's Galaxy Watch 4. Namely, this complication (3) on the Info Brick watch face: Screenshot of Wear app on S21 Can anyone tell me what complication type this is? I've…
GrowABeard
  • 33
  • 3
3
votes
1 answer

How to add complications by default in wearOS android

Developer.android says: void setDefaultSystemComplicationProvider (int watchFaceComplicationId, int systemProvider, int type) but does not works for me.
2
votes
0 answers

There are no icons in complications on Pixel Watch and in the api30 emulator

On api less than 30 everything works, on Samsung (GW4) watches with api30 icons are also normally displayed and you can pull them out of ComplicationData. if (complicationData.getIcon()!=null) { icon[complicationId] =…
2
votes
1 answer

Unread notification count complication in Android Wear 2

I'm developing a series of Android Wear 2 watch faces and apparently I've found a problem I cannot solve. In the images you can see two simple watch faces from Google (I'm sorry I cannot embed images, yet). The first one is from the Google…
1
vote
0 answers

Add custom complication data source to Samsung watch face

I created a Wear OS complication data source that exposes SHORT_TEXT and LONG_TEXT. The complication works correctly in the emulator with the built-in watch faces. When I deploy the app to the Samsung Watch 4 running Wear OS 3.5, the complication…
1
vote
1 answer

WearOS Complication rendering doesn't show up on the watchface

I followed WatchOS documentation for creation of the watchface. I can draw anything on the watchface without any problem, however, when I try to render any complication it doesn't show up. package com.example.mywatchface import…
1
vote
1 answer

Make a SmallImage complication with an ambient image

I'm trying to make a WearOS Complication that is just an image. Ideally, it should display the image img1.png when on like this, and the image outlines.png when in ambient mode like this. Right now, I've got return when (request.complicationType)…
Marvil
  • 17
  • 4
1
vote
1 answer

Androidx wearos watchface set default complication data source

I can't manage to set my own default complications on my own watchface (same app, same package). I'v used DefaultComplicationDataSourcePolicy for the complicationSlotManager : sealed class ComplicationConfig(val id: Int, val supportedTypes:…
1
vote
1 answer

Cannot find Complication icon on Galaxy Watch 4

I have a watch face for Wear OS that I built several years ago. Recently, users have been complaining of crashes on the Galaxy Watch 4. I picked one up and found that Complication icons aren't properly loading on it. Calling…
1
vote
3 answers

How to change text font in android complication

Android documentation says androidx.wear.watchface.complications.rendering.ComplicationDrawable has textTypeface and titleTypeface attributes. But I have found no information how to use it. I have tried to pass there font resource, font-family…
1
vote
0 answers

Can I modify complication data?

I am learning android development and trying to develop a simple android watchface with kotlin. For now I am stucked with complications. I found a way how to make it work with default system data like how to show a step counter or a current…
1
vote
0 answers

How to attach debugger to Wear OS emulator (or watch) and debug a complication provider?

I am trying to debug a Wear OS complication provider, and I cannot find any instructions on how to do so. I didn't write it, and I'm new to Android development - I'm trying to diagnose a bug in an Open Source project. I have the phone and watch…
1
2 3