From 47b7e060d98c337166114c5889f35224c6e10627 Mon Sep 17 00:00:00 2001 From: Luan Nguyen Date: Wed, 22 Apr 2015 14:48:46 -0700 Subject: docs: Update Wearable API setup to mention addApiIfAvailable(). bug: 20486912 Change-Id: Ie5fe89b5bd0bbed5c95cead301c6eb6278bfdaee --- docs/html/training/wearables/data-layer/accessing.jd | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'docs/html/training/wearables') diff --git a/docs/html/training/wearables/data-layer/accessing.jd b/docs/html/training/wearables/data-layer/accessing.jd index 0c0a2d5..482b30c 100644 --- a/docs/html/training/wearables/data-layer/accessing.jd +++ b/docs/html/training/wearables/data-layer/accessing.jd @@ -61,13 +61,16 @@ GoogleApiClient mGoogleApiClient = new GoogleApiClient.Builder(this)

-Important: To avoid client connection errors on devices that do not have the +Important: If you are adding multiple APIs to a +GoogleApiClient, +you may run into client connection errors on devices that do not have the Android -Wear app installed, use a separate {@code -GoogleApiClient} instance to access only the installed. To avoid connection errors, call the +{@code addApiIfAvailable()} +method and pass in the {@code -Wearable} API. For more information, see API to indicate that your client should gracefully handle the missing API. +For more information, see Access the Wearable API.

Before you use the data layer API, start a connection on your client by calling the -- cgit v1.1