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
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
2 answers

Gles2WatchFaceService deprecated? What now?

For my Wear OS watch face project, I am using Gles2WatchFaceService so the watch face has smooth OpenGL animation when needed. I just updated in build.gradle the following dependency: implementation 'com.google.android.support:wearable:2.9.0' The…
go3d
  • 443
  • 3
  • 11
1
vote
0 answers

How do i get api for MI Band 6 watch faces?

I want to create an application that will display collection of all mi band 6 watch faces available to download.I saw some of the application on google playstore that already had these feature .I googled on how they are doing it but found nothing…
1
vote
1 answer

Wear OS animation Android

How can i animate a line on a canvas in WearOS every 5 seconds? I know that we have to use an AnimatorTask with a call to postInvalidate(). However since I am directly drawing the line on the canvas, I do not have a View object. public class…
user2511882
  • 9,022
  • 10
  • 51
  • 59
1
vote
1 answer

Android Wear OS Watch Face Support different screen sizes

I'm playing around Watch Faces for Wear OS Currently, I have created Background 320x320 Tick Circle 320x320 Hours, Minutes and Seconds Hands 320x40 Everything works fine on round devices with the screen size 320x320 Things are getting complicated…
Viktor Apoyan
  • 10,655
  • 22
  • 85
  • 147
1
vote
2 answers

How to rotate a second's hand watch five times in a second in Wear OS?

I'm developing a watch face and want to rotate the second's hand 1.2 degrees in 1/5 of a second. Why these numbers? 1) 360 degrees / 60 seconds = 6 degress per second 2) 6 degrees / 5 = 1.2 degrees (rotates 1.2 degrees in a fifth of a second). Below…
Pablo Darde
  • 5,844
  • 10
  • 37
  • 55
1
vote
0 answers

Problem scheduling repeating background service in Watch Face (Wear OS)

I want to schedule a background service every 5 minutes. I'm using HandlerThread and Handler to manage the threads and JobIntentService to do the task. My code is running into the onCreate method of my watch face, which is the main app that is…
1
vote
1 answer

Request permissions for an Android Wear watch face

So watch faces are Android Wear apps that don't have any activities but only a service. It's visible and interactive, but a service. And if the app wants to access anything like location or settings, it needs to request the corresponding permissions…
ygoe
  • 18,655
  • 23
  • 113
  • 210
1
vote
1 answer

Starting an Activity from Android Wear Watchface

I am trying to start an activity from a watchface in Android Wear on a click using: Intent myIntent = new Intent(this, com.jorc.android.wearable.watchface.watchface.MainActivity.class); …
Amir
  • 1,667
  • 3
  • 23
  • 42
1
vote
1 answer

android watch selection menu options?

How are selection options added to watch selection menu. Some watches (eg InstaWeather) show a gear under the the selection thumbnail, and clicking the gear offers settings. Unfortunately, I could not find source code for the InstaWeather watch. But…
kjl
  • 311
  • 3
  • 13
1
vote
1 answer

Where to declair the alarm manager for updating a watchface in ambient mode?

I'm trying to add an AlarmManager to update a watch face on half minute intervals. This is for a ternary clock. This is my first time programming with Java or android studio. I'm following a guide at…
kjl
  • 311
  • 3
  • 13
1
vote
2 answers

Code example for android-wear watch using AlarmManager to update in ambient mode?

I'm looking for an example of code for an android watch that uses the AlarmManager class to update the face in ambient mode. Please provide a link or past the code. Thank you.
kjl
  • 311
  • 3
  • 13
1
vote
1 answer

Android wear watch face rejected - "basic functionality"?

I submitted my first android wear watch face to the Play store last night, but it got rejected. The reason in the email was simply: Eligibility issues: -Basic functionality of your app does not work as described. Be sure to test your app on a…
James
  • 999
  • 2
  • 11
  • 22
1
vote
1 answer

Android Wear: animation in WatchFace

I would to create an animated WatchFace for Android Wear. I've 20 images to add (or to change completely) every X ms to the background. Now: i've followed this tutorial but the animation doesn't start. I see only one of the twenty bitmap over my…
garsim
  • 160
  • 2
  • 11
1
vote
0 answers

Changing watch hands android wear

I am trying to make my own watch face for android wear. I am able to set the background image and change the what hand style but how do I replace the hands completely with custom hands like the one below (Mickey mouse hand):
android_eng
  • 1,370
  • 3
  • 17
  • 40