- #HOW TO CREATE GARMIN WATCH FACES HOW TO#
- #HOW TO CREATE GARMIN WATCH FACES ANDROID#
- #HOW TO CREATE GARMIN WATCH FACES CODE#
- #HOW TO CREATE GARMIN WATCH FACES ZIP#
#HOW TO CREATE GARMIN WATCH FACES ANDROID#
In Android Studio, this is located under 1-base/java/. MyWatchFaceService - Our watch face and it has a watch face engine called MyWatchFaceService.Engine - This file is located in the directory 1-base/java/com/android/example/watchface.The number in front of the module name corresponds with the codelab step.
#HOW TO CREATE GARMIN WATCH FACES CODE#
You will be adding code from each step to 1-base.Įach of the following modules can be used as reference points to check your work or for reference if you encounter any issues. We'll set off using the 1-base module, which is the starting point for the watch face that we'll be building upon. Understand the starter projectĪll right, you're set up and ready to start creating your own watch face. In addition, if you get a prompt saying "Reload for language changes to take effect?" or something similar, select "Yes". This will allow Android Studio to pull in all the necessary components. We recommend that you wait until this has finished before making code changes. During this time you will see a spinner in the status bar at the bottom of Android Studio: Please note that Android Studio might take several seconds to compile the project in the background for the first time. (If you are in the Project view, you will need to expand the watchface project to see the same thing.) In the upper-left corner of the project window, you should see something like the image below if you are in the Android view. (You won't be pushing any changes back to the Git repo.) Start Android Studio, and select "Open an existing Android Studio project" from the Welcome screen, open the project directory and double click on the adle file in the watchface directory:Īfter the project has loaded, you may also see an alert like the one below, you can click " X" in the upper right.
#HOW TO CREATE GARMIN WATCH FACES ZIP#
If you do not have git you can get the project as a zip file: (You can check by typing git -version in the terminal / command line and verify it executes correctly.) git clone If you have git installed, you can simply run the command below. It contains some basic code and application settings necessary for building watch faces. To get you started as quickly as possible, we have prepared a starter project for you to build on. Please refer to this guide for installing both the Android Studio and the required SDK components. In addition, it will require Wear OS SDK components to be downloaded. This codelab uses Android Studio (version 3.5), an integrated development environment (IDE) for developing Android apps. If you run into any issues (code bugs, grammatical errors, unclear wording, etc.) as you work through this codelab, please report the issue via the Report a mistake link in the lower left corner of the codelab. Our code will fill each of these pages, making the watch face move. You can think of this as an animator flipping through a book of moving cartoon drawings. Within this service, there is an engine that renders each screen. This is what we are going to create today.Ī watch face is essentially a native service that runs in the background on an Wear OS device. Aside from offering a choice of manufacturers, customisable watch faces give users even more ways to express their personal style. It is designed to deliver useful information when you need it most, intelligent answers to spoken questions, and tools to help reach fitness goals.īeing such a personal device, style is a big part of it. Wear OS is a wearable platform designed for small, powerful devices, worn on the body. To start off let's learn a little bit about Wear OS and its most prominent UI element - the watch face. At the end of the codelab, you can expect to have a watch face you can call your own.
#HOW TO CREATE GARMIN WATCH FACES HOW TO#
In this codelab, you'll learn how to quickly create a watch face for Wear OS. By the end of the codelab, you'll have a customized watch face that you can call your own. There is also a bonus section on using the palette API to automatically choose a color for the watch face if you have the time. It will then walk you through customising an analog watch face. This codelab will introduce you to the key concepts needed to create your own watch face for Wear OS.