Questions tagged [watch-face-api]

An API for building (interactive) watch faces for the Wear OS platform.

The watch face API is part of the Wearable Support Library. Watch faces can be rendered on a Canvas or using OpenGL ES 2.0. The official developer documentation can be found here and includes basic setup instructions and sample code.

104 questions
4
votes
1 answer

Can't connect to Android Wearable Health Services

I tried to read walking steps from Android Wear (Samsung Galaxy Watch 4), using this guide : https://developer.android.com/training/wearables/health-services/active. This is part of my code : val healthClient = HealthServices.getClient(this…
4
votes
2 answers

Android Wear watchface StatusBarGravity Bottom not respected

I'm making a watchface for Android Wear. I would like to position the status bar at the bottom instead of at the top. The documentation states to use the setStatusBarGravity()-method of WatchFaceStyle.Builder:…
Mavamaarten
  • 1,959
  • 18
  • 19
4
votes
1 answer

Deprecated methods in watch face module

I'm developing a watch face on Android. In onCreate method when I set watch face style, I see that a bunch of methods are deprecated, but on Android official website they are not. What should I do to get rid of these deprecated methods, or leave…
JuliaKo
  • 731
  • 1
  • 11
  • 19
4
votes
1 answer

Client not ready yet.. in Android wear watchface app

I am trying to build an app with watchface wear. my app runnning well but when I create watchface wear and set NoActivity and run wear app then it shows "Client not ready yet.." message in Run-Logcat like that- $ adb push…
Santosh
  • 227
  • 1
  • 4
  • 18
4
votes
2 answers

How to draw watchface 'ticks' on a square watch?

I currently have this snippet generating the ticks around the outside of and android wear watchface float innerMainTickRadius = mCenterX - 35; for(int tickIndex = 0; tickIndex < 12; tickIndex++) { float tickRot = (float)…
nuggetbram
  • 345
  • 1
  • 12
4
votes
2 answers

How do I change Watch Faces programmatically

I've a free app on the Play Store: Circus Watch Faces and I'm trying to add a watch faces chooser in the configuration activity; I followed the Android Dev Docs about it and no problems, BUT how I can switch from one watch face to another? I'm…
Leonardo Gandini
  • 238
  • 1
  • 15
4
votes
1 answer

Android Wear watch face companion configuration activity not linked

I've updated my Android Wear watch face according to the official API, and overall it's gone pretty well. One thing I'm stuck on, however, is launching the companion (handheld) config activity from within the Android Wear app. I just can't get the…
Sterling
  • 6,365
  • 2
  • 32
  • 40
4
votes
2 answers

Android Wear watchface keep screen on

I am using the official android watch face API and I want to keep the screen on for a couple of seconds during an animation so that the screen doesn't go into ambient mode during the animation and once the animation is finished, I want to reset…
sam
  • 4,357
  • 5
  • 29
  • 34
3
votes
1 answer

What does PROPERTY_OFFLOAD_SUPPORTED mean?

WatchFaceService has a method public void onPropertiesChanged(Bundle properties) which returns a bundle of properties. One of them has a key PROPERTY_OFFLOAD_SUPPORTED. Here are all properties that are available in WatchFaceService: public static…
Vladimir Jovanović
  • 2,261
  • 2
  • 24
  • 43
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.
3
votes
1 answer

How to detect when android wear watch face is going to enter ambient mode?

I am trying to trigger some actions on an Android Wear watch face right before it goes into Ambient Mode. For activities, there is the onEnterAmbient() overrideable method, but I believe this is not the case for wallpaper services. So, is there any…
3
votes
1 answer

Android, draw clock with offset from center

I am trying to achieve this WatchFace using Android API: These are my paints used for Hours, Minutes and…
Raffaeu
  • 6,694
  • 13
  • 68
  • 110
3
votes
2 answers

Packaging wearable apps

I'm in the last stage of developing a watchface service for the android wear devices. The problem is the following: Every time i try to sign my app, two files are being generated: wear-release.apk and mobile-release.apk , there is no other apk.…
3
votes
1 answer

How to detect change in time each second in Android?

I am creating a custom watch face for android by following this tutorial. I have implemented broadcast receiver to detect change in time as follows: Inside my activity I have static block to filter following intents: static { intentFilter = new…
3
votes
2 answers

onApplyWindowInsets is not called in CanvasWatchFaceService.Engine

I am developing a watch face using CanvasWatchFaceService.Engine I need to detect if watch is round or square. I overrided onApplyWindowInsets, but it is not called. Shall I set a specific listener or something like that?
AVEbrahimi
  • 17,993
  • 23
  • 107
  • 210
1
2 3 4 5 6 7