From c1bb7d328f18b9cde5cf25273dd8d2794840a6d1 Mon Sep 17 00:00:00 2001
From: Robert Ly
Date: Mon, 7 Jul 2014 08:28:00 -0700
Subject: docs: fix links
Change-Id: Ib3cc9e4608ddbbcb0bdf91ec79cd22a01ae6566b
---
docs/html/training/wearables/apps/index.jd | 2 +-
docs/html/training/wearables/apps/layouts.jd | 1 -
docs/html/training/wearables/apps/packaging.jd | 2 +-
docs/html/training/wearables/data-layer/assets.jd | 4 ++--
docs/html/training/wearables/data-layer/data-items.jd | 2 +-
5 files changed, 5 insertions(+), 6 deletions(-)
(limited to 'docs/html/training')
diff --git a/docs/html/training/wearables/apps/index.jd b/docs/html/training/wearables/apps/index.jd
index a0d02fb..7d961b7 100644
--- a/docs/html/training/wearables/apps/index.jd
+++ b/docs/html/training/wearables/apps/index.jd
@@ -69,6 +69,6 @@ in ADT. The rest of this training assumes you're using Android Studio.
Learn how to package a wearable app inside a
handheld app. This allows the system to install the wearable app automatically when
users install the companion handheld app from the Google Play store.
- Debugging over Bluetooth
+ Debugging over Bluetooth
Learn how to debug your wearable over Bluetooth instead of USB.
\ No newline at end of file
diff --git a/docs/html/training/wearables/apps/layouts.jd b/docs/html/training/wearables/apps/layouts.jd
index cdd7d12..e9eacd3 100644
--- a/docs/html/training/wearables/apps/layouts.jd
+++ b/docs/html/training/wearables/apps/layouts.jd
@@ -11,7 +11,6 @@ page.title=Creating Custom Layouts
Create Layouts with the Wearable UI Library
-
You should also read
- Android Wear Design Principles
diff --git a/docs/html/training/wearables/apps/packaging.jd b/docs/html/training/wearables/apps/packaging.jd
index ea29c9d..3660099 100644
--- a/docs/html/training/wearables/apps/packaging.jd
+++ b/docs/html/training/wearables/apps/packaging.jd
@@ -34,7 +34,7 @@ Android Studio directly to the wearable is required.
dependencies {
compile 'com.google.android.gms:play-services:5.0.+@aar'
- compile files('../../prebuilt-libs/android-support-v4.jar')
+ compile 'com.android.support:support-v4:20.0.+''
wearApp project(':wearable')
}
diff --git a/docs/html/training/wearables/data-layer/assets.jd b/docs/html/training/wearables/data-layer/assets.jd
index 73ebb73..52ccbb0 100644
--- a/docs/html/training/wearables/data-layer/assets.jd
+++ b/docs/html/training/wearables/data-layer/assets.jd
@@ -91,8 +91,8 @@ public void onDataChanged(DataEventBuffer dataEvents) {
for (DataEvent event : dataEvents) {
if (event.getType() == DataEvent.TYPE_CHANGED &&
event.getDataItem().getUri().getPath().equals("/image")) {
- BundleDataItem bundleDataItem = BundleDataItem.fromDataItem(dataItem);
- Asset profileAsset = bundleDataItem.getData().getParcelable("profileImage");
+ DataMapItem dataMapItem = DataMapItem.fromDataItem(dataItem);
+ Asset profileAsset = dataMapItem.getDataMap().getAsset("profileImage");
Bitmap bitmap = loadBitmapFromAsset(profileAsset);
// Do something with the bitmap
}
diff --git a/docs/html/training/wearables/data-layer/data-items.jd b/docs/html/training/wearables/data-layer/data-items.jd
index c39e37a..63c32ea 100644
--- a/docs/html/training/wearables/data-layer/data-items.jd
+++ b/docs/html/training/wearables/data-layer/data-items.jd
@@ -120,5 +120,5 @@ public void onDataChanged(DataEventBuffer dataEvents) {
This is just a snippet that requires more implementation details. Learn about
how to implement a full listener service or activity in
-Listening for Data Layer Events.
+Listening for Data Layer Events.
\ No newline at end of file
--
cgit v1.1