Android Wear

PDF for offline use

Let us know how you feel about this


0/250

last updated: 2017-02

Android Wear is a version of Android that is designed for wearable devices such as smart watches. This section includes instructions on how to install and configure tools required for Wear development, a step-by-step walkthrough for creating your first Wear device, and a list of samples that you can refer to for creating your own Wear apps.

Introduction to Android Wear

About the Android Wear ecosystem.

Installation and Setup

Xamarin.Android 4.2 and later has support for Android Wear. Read this guide for details on how to download and install the latest Xamarin.Android SDK and tools required for Android Wear development. This guide also explains how to configure a Wear emulator or device for testing.

Getting Started

How to create your first Android Wear app and run it on a Wear emulator or device.

Controls

Explains Android Wear-specific controls and provides links to samples that demonstrate how to use these controls.

Creating a Watch Face

A step-by-step walkthrough for implementing a custom watch face service for Android Wear. Instructions are provided for building a stripped down digital watch face service, and then more code is added to create an analog-style watch face with extra features.

Working with Android Wear

Explains how to preview and optimize your user interface for available screen sizes, and describes the steps for manually packaging Wear apps for distribution in the Google Play Store.

Samples

You can find a number of samples using Android Wear (or go directly to github).

Sample Description Screenshot
SkeletonWear A simple example of the basics of wearable projects, including GridViewPager and interactive notifications.
WatchViewStub A simple demo of the WatchViewStub control that detects screen shape and automatically loads the correct layout. See how WatchViewStub works in the Resources/layout/main_actvity.xml layout.
RecipeAssistant Demonstration of Wear notification pages, in the form of recipe steps. Notifications are created in RecipeService.cs.
ElizaChat Fun sample of interacting with a "personal assistant" called Eliza, using Wear interactive notifications to create a conversation using canned responses.
GridViewPager GridViewPager implements the 2D navigation pattern, where the user swipes vertically and then horizontally to navigate through options and content.
WatchFace WatchFace is a custom watch face with analog-style hour, minute, and second hands. This sample demonstrates how to create a watch face service that draws the current time and handles ambient mode and visibility change events. It includes a broadcast receiver that listens for time zone changes and automatically updates the time accordingly.

Videos

Check out these video links that discuss Xamarin.Android with Wear support.

Android L and So Much More
The Android L Developer Preview introduced a plethora of new APIs for developers to take advantage of, including Material Design, notifications, and new animations, to name a few.
C# is in my Ears and in my Eyes: Google Glass and Android Wear
Wearable computing might seem like something from the future (or an Inspector Gadget episode), but many people are already embracing the future today! C# developers know this and already have the tools and skills to harness the power of wearable devices (from Evolve 2014).
What's new in Xamarin.Android
Android L, Android Wear, Android TV, Android Auto, Material Design, and ART; what does this mean to you as a Xamarin developer? from Evolve 2014.

Xamarin Workbook

If it's not already installed, install the Xamarin Workbooks app first. The workbook file should download automatically, but if it doesn't, just click to start the workbook download manually.