diff options
| author | Joe Fernandez <joefernandez@google.com> | 2015-04-28 00:24:19 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2015-04-28 00:24:19 +0000 |
| commit | 80d19484c109c4beb0e36b7ce0418ebe526ad300 (patch) | |
| tree | a9d6b1824931b7aeb421e947bf13cac7ab676655 /docs/html/training | |
| parent | 0af3af0397cb6a92ea140736e84f7484ce029071 (diff) | |
| parent | 185002bcc9b551828557ab6946fef7fef1c17d74 (diff) | |
| download | frameworks_base-80d19484c109c4beb0e36b7ce0418ebe526ad300.zip frameworks_base-80d19484c109c4beb0e36b7ce0418ebe526ad300.tar.gz frameworks_base-80d19484c109c4beb0e36b7ce0418ebe526ad300.tar.bz2 | |
am 185002bc: Merge "docs: Update Wearable API setup to mention addApiIfAvailable()." into lmp-mr1-ub-docs
* commit '185002bcc9b551828557ab6946fef7fef1c17d74':
docs: Update Wearable API setup to mention addApiIfAvailable().
Diffstat (limited to 'docs/html/training')
| -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 |
