Setup and Installation

PDF for offline use:
Sample Code:

Let us know how you feel about this.


0/250
Thanks for the feedback!

Release Notes

Review the Xamarin.Android 5.0 release notes.

Setup

When you have Xamarin.Android installed, perform the following steps so you're ready to build and test your Wear apps:

1. Ensure you have the required Android SDK & tools

  • Android SDK Tools v 24.0.0 or higher, and
  • Android 4.4W (API20), or
  • Android 5.0.1 (API21).

Use the Android SDK Manager

to download (tick the SDK Tools and the API bits, you may need to scroll a bit to find them - the API selection is shown below)

2. Don't forget to set up an Android Wear emulator

Use the Google Emulator Manager

to create a new Android Virtual Device using one of the Android Wear watch configurations

Also see Google's docs on setting up the emulator or a device.

3. Create your first Android Wear app

Follow the getting started instructions to build your first watch app.

Packaging

Android wear applications are always distributed with a companion Android phone app.

Use the Xamarin.Android Alpha Channel for improved Wear packaging support.

With this release, JDK 1.7 is now required to use Android Wear and build apps against API 21.
JDK 1.6 may still be used when targeting previous API levels.

Using the Alpha channel, when you add your Android Wear application as a reference to your main Android application it is automatically assumed to be an Android Wear project and will generate all necessary XML and metadata for you. In addition, it will verify that package and version numbers match so you can easily ship your apps to Google Play.

Read more about packaging Wear apps.

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.