From 4adf1e069b4c71861010978db008858c7d898751 Mon Sep 17 00:00:00 2001 From: Ricardo Cervera Date: Wed, 9 Jul 2014 10:46:54 -0700 Subject: docs: Fixed minor issues with Wear docs. Bug: 16062631 Change-Id: Ieaa02cfedd1b9b6f59c6937a056c8d4f4eb4188e --- docs/html/training/wearables/apps/creating.jd | 8 +++++++- docs/html/training/wearables/data-layer/accessing.jd | 12 ++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/docs/html/training/wearables/apps/creating.jd b/docs/html/training/wearables/apps/creating.jd index f6b96e27b7af..fa4913fbac04 100644 --- a/docs/html/training/wearables/apps/creating.jd +++ b/docs/html/training/wearables/apps/creating.jd @@ -89,10 +89,16 @@ types of screen shapes, which is useful for testing.

  • Install the Android Wear app, available on Google Play, on your handheld.
  • Follow the app's instructions to pair your handheld with your wearable. This allows you to test out synced handheld notifications, if you're building them.
  • +
  • Leave the Android Wear app open on your phone.
  • Connect the wearable to your machine through USB, so you can install apps directly to it - as you develop.
  • + as you develop. A message appears on both the wearable and the Android Wear app prompting you to allow debugging. +
  • On the Android Wear app, check Always allow from this computer and tap + OK.
  • +

    The Android tool window on Android Studio shows the system log from the wearable. +The wearable should also be listed when you run the adb devices command.

    +

    Create a Project

    To begin development, create an app project that contains diff --git a/docs/html/training/wearables/data-layer/accessing.jd b/docs/html/training/wearables/data-layer/accessing.jd index 4babd0a3ad32..896a6984b6ad 100644 --- a/docs/html/training/wearables/data-layer/accessing.jd +++ b/docs/html/training/wearables/data-layer/accessing.jd @@ -33,7 +33,7 @@ A minimal Note: For now, this minimal client is enough to get started. However, see Accessing Google Play services APIs -for more information about creating aGoogleApiClient, +for more information about creating a GoogleApiClient, implementing its callbacks, and handling error cases.

    @@ -42,6 +42,7 @@ GoogleApiClient mGoogleAppiClient = new GoogleApiClient.Builder(this)
                     @Override
                     public void onConnected(Bundle connectionHint) {
                         Log.d(TAG, "onConnected: " + connectionHint);
    +                    // Now you can use the data layer API
                     }
                     @Override
                     public void onConnectionSuspended(int cause) {
    @@ -56,4 +57,11 @@ GoogleApiClient mGoogleAppiClient = new GoogleApiClient.Builder(this)
                 })
             .addApi(Wearable.API)
             .build();
    -
    \ No newline at end of file + + +

    Before you use the data layer API, start a connection on your client by calling the +connect() +method, as described in +Accessing Google Play services APIs. +When the system invokes the onConnected() callback for your client, you're ready +to use the data layer API.

    \ No newline at end of file -- cgit v1.2.3-59-g8ed1b