Pular para o conteúdo

Mais visitados

Visitados recentemente

navigation

Creating Wearable Apps

On this page

Wear OS by Google apps run directly on a watch, giving you access to hardware such as sensors and the GPU. Wearable apps are similar to other apps that use the Android SDK, but differ in design and functionality.

The following are some of the differences between phone and watch apps:

To conserve power on a watch, enable ambient mode in your app. A watch transitions from interactive mode to ambient mode when the watch is idle on an activity or when a user covers the screen with their palm. Watch apps that can transition into ambient mode are called always-on apps. The following describes the two modes of operation for always-on apps:

Interactive
Use full color with fluid animation in this mode. The app is also responsive to input.
Ambient
Render the screen with black and white graphics and do not present any input cues in this mode. This display mode is only supported on devices running Android 5.1 or higher.

On devices running versions prior to Android 5.1 or for apps that do not support ambient mode, when a user is idle on an activity or when the user covers the screen with their palm on an activity, the Wear home screen is displayed instead of your activity in ambient mode. If you need to show persistent content on versions prior to Android 5.1, create a notification in the context stream instead.

Note: We recommend using Android Studio for Wear OS development, as it provides project setup, library inclusion, and packaging. The rest of this training assumes you're using Android Studio.

Refer to the following related resources:

Lessons

Creating and Running a Wearable App
Learn how to create an Android Studio project that contains your watch app; learn how to run the app on a device or emulator.
Standalone Apps
Learn how to create a watch app that works independently of a phone.
Creating Custom Layouts
Learn how to create and display custom layouts for notifications and activities.
Keeping Your App Visible
Learn how to enable ambient mode for your apps, so they remain visible while still saving battery power.
Authentication in Wear
Learn how to manage authentication.
Adding Voice Capabilities
Learn how to launch an activity with voice actions and how to start the system speech recognizer app to obtain free-form voice input.
Packaging and Distributing Wear Apps
Learn how to package your app for direct distribution through the Play Store.
Debugging a Wear OS App
Learn how to set up a debugging environment for your watch app.
Capturing Wear UI Screenshots
Learn how to capture Wear UI screenshots.
Creating Wear OS Apps for China
Learn how to support your app in China.
Este site usa cookies para armazenar suas preferências quanto às opções de idioma e exibição específicas ao site.

Receba as dicas e notícias mais recentes para desenvolvedores Android que ajudarão você a ter sucesso no Google Play.

* Campos obrigatórios

Uhu!

Siga o Google Developers no WeChat

Navegar neste site em ?

Você solicitou uma página em , mas sua preferência de idioma para este site está definida como .

Quer alterar sua preferência de idioma e navegar neste site em ? Para alterar a preferência de idioma depois, use o menu de idiomas na parte inferior de cada página.

É preciso ter o nível de API ou superior para esta aula

Este documento está oculto porque o nível de API selecionado para a documentação é o . Para alterar o nível, clique no seletor acima da barra de navegação esquerda.

Para mais informações sobre como especificar o nível de API que o seu app precisa, leia o artigo Compatibilidade com diferentes versões de plataforma.

Take a short survey?
Help us improve the Android developer experience. (April 2018 — Developer Survey)