O'Reilly logo

Xamarin Mobile Development for Android Cookbook by Matthew Leibowitz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring watch faces

Awesome watch faces can be created to delight the wearer; however, users enjoy the ability to customize the final appearance of any personal technology.

How to do it...

Similar to communicating with wearables, our watch face configuration activity manages settings by synchronizing setting selections from the activities to the watch face service:

  1. We need to create the configuration activity, and apply an [IntentFilter] attribute with a specification value that will be used to associate the watch face with this activity:
    [Activity] [IntentFilter( new[] { "com.xamarincookbook.wearables.CONFIG" }, Categories = new[] { "com.google.android.wearable.watchface.category.WEARABLE_CONFIGURATION", Android.Content.Intent.CategoryDefault ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required