From 4adf1e069b4c71861010978db008858c7d898751 Mon Sep 17 00:00:00 2001
From: Ricardo Cervera
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.
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.