From 0eb0c9944c386b8cda2c51be141836e7e067d45c Mon Sep 17 00:00:00 2001 From: Luan Nguyen Date: Wed, 26 Nov 2014 15:08:03 -0800 Subject: docs: Update getting started creating Wearable apps with proper prereqs and instructions. Bug:17392020 Change-Id: I668cd0766a216786b019425474b0bb36c6e12443 --- docs/html/training/wearables/apps/creating.jd | 50 +++++++++++++++++---------- 1 file changed, 32 insertions(+), 18 deletions(-) (limited to 'docs/html') diff --git a/docs/html/training/wearables/apps/creating.jd b/docs/html/training/wearables/apps/creating.jd index 018d9f7..683dd31 100644 --- a/docs/html/training/wearables/apps/creating.jd +++ b/docs/html/training/wearables/apps/creating.jd @@ -6,6 +6,7 @@ page.title=Creating and Running a Wearable App

This lesson teaches you to

    +
  1. Update Your SDK
  2. Set Up an Android Wear Emulator
  3. Set Up an Android Wear Device
  4. Create a Project
  5. @@ -13,7 +14,7 @@ page.title=Creating and Running a Wearable App

Dependencies and Prerequisites

@@ -34,6 +35,24 @@ sending the results to the wearable. both your wearable and handheld apps.

+

Update Your SDK

+ +

Before you begin building wearable apps, you must:

+ + + +

To update your SDK with these components, see + Get the latest SDK tools.

+

Set Up an Android Wear Emulator or Device

We recommend that you develop on real hardware so you can better @@ -45,29 +64,24 @@ types of screen shapes, which is useful for testing.

To set up an Android Wear virtual device:

  1. Click Tools > Android > AVD Manager.
  2. -
  3. Click Create....
  4. -
  5. Fill in the following details for the AVD you want to specify and leave the rest - of the fields with their default values: -
      -
    • AVD Name - A name for your AVD
    • -
    • Device - Android Wear Round or Square device types
    • -
    • Target - Android 4.4W - API Level 20
    • -
    • CPU/ABI - Android Wear ARM (armeabi-v7a)
    • -
    • Keyboard - Select Hardware keyboard present
    • -
    • Skin - AndroidWearRound or AndroidWearSquare depending on the selected device type
    • -
    • Snapshot - Not selected
    • -
    • Use Host GPU - Selected, to support custom activities for wearable notifications
    • -
    -
  6. -
  7. Click OK.
  8. +
  9. Click Create Virtual Device....
  10. +
      +
    1. Click Wear in the Category list:
    2. +
    3. Select Android Wear Square or Android Wear Round.
    4. +
    5. Click Next.
    6. +
    7. Select a release name (for example, KitKat Wear).
    8. +
    9. Click Next.
    10. +
    11. (Optional) Change any preferences for your virtual device.
    12. +
    13. Click Finish.
    14. +
  11. Start the emulator:
    1. Select the virtual device you just created.
    2. -
    3. Click Start..., then click Launch.
    4. +
    5. Click the Play button.
    6. Wait until the emulator initializes and shows the Android Wear home screen.
  12. -
  13. Pair Your handheld with the emulator: +
  14. Pair your handheld with the emulator:
    1. On your handheld, install the Android Wear app from Google Play.
    2. Connect the handheld to your machine through USB.
    3. -- cgit v1.1