diff options
author | Joe Fernandez <joefernandez@google.com> | 2015-04-28 00:00:08 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-04-28 00:00:09 +0000 |
commit | 185002bcc9b551828557ab6946fef7fef1c17d74 (patch) | |
tree | 4a7f135c2358d90337dbe88f06c79dd7dfdddda8 /docs/html/training/wearables | |
parent | 6360428359bd1a4db1c9a569d8f9e1af8baf29fb (diff) | |
parent | 47b7e060d98c337166114c5889f35224c6e10627 (diff) | |
download | frameworks_base-185002bcc9b551828557ab6946fef7fef1c17d74.zip frameworks_base-185002bcc9b551828557ab6946fef7fef1c17d74.tar.gz frameworks_base-185002bcc9b551828557ab6946fef7fef1c17d74.tar.bz2 |
Merge "docs: Update Wearable API setup to mention addApiIfAvailable()." into lmp-mr1-ub-docs
Diffstat (limited to 'docs/html/training/wearables')
-rw-r--r-- | docs/html/training/wearables/data-layer/accessing.jd | 13 |
1 files changed, 8 insertions, 5 deletions
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) </pre> <p class="caution"> -<strong>Important:</strong> To avoid client connection errors on devices that do not have the +<strong>Important:</strong> If you are adding multiple APIs to a +<a href="{@docRoot}reference/com/google/android/gms/common/api/GoogleApiClient.html"><code>GoogleApiClient</code></a>, +you may run into client connection errors on devices that do not have the <a href="https://play.google.com/store/apps/details?id=com.google.android.wearable.app&hl=en">Android -Wear app</a> installed, use a separate <a -href="{@docRoot}reference/com/google/android/gms/common/api/GoogleApiClient.html">{@code -GoogleApiClient}</a> instance to access only the <a +Wear app</a> installed. To avoid connection errors, call the +<a href="{@docRoot}reference/com/google/android/gms/common/api/GoogleApiClient.Builder.html#addApiIfAvailable(com.google.android.gms.common.api.Api<? extends com.google.android.gms.common.api.Api.ApiOptions.NotRequiredOptions>, com.google.android.gms.common.api.Scope...)">{@code addApiIfAvailable()}</a> +method and pass in the <a href="{@docRoot}reference/com/google/android/gms/wearable/Wearable.html">{@code -Wearable}</a> API. For more information, see <a +Wearable}</a> API to indicate that your client should gracefully handle the missing API. +For more information, see <a href="{@docRoot}google/auth/api-client.html#WearableApi">Access the Wearable API</a>.</p> <p>Before you use the data layer API, start a connection on your client by calling the |