Loading docs/html/training/wearables/apps/index.jd +1 −1 Original line number Diff line number Diff line Loading @@ -69,6 +69,6 @@ in ADT. The rest of this training assumes you're using Android Studio. <dd>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.</dd> <dt><a href="{@docRoot}training/wearables/apps/packaging.html">Debugging over Bluetooth</a></dt> <dt><a href="{@docRoot}training/wearables/apps/bt-debugging.html">Debugging over Bluetooth</a></dt> <dd>Learn how to debug your wearable over Bluetooth instead of USB.</dd> </dl> No newline at end of file docs/html/training/wearables/apps/layouts.jd +0 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,6 @@ page.title=Creating Custom Layouts <li><a href="#UiLibrary">Create Layouts with the Wearable UI Library</li> </ol> <!--STOPSHIP: link these --> <h2>You should also read</h2> <ul> <li><a href="{@docRoot}design/wear/index.html">Android Wear Design Principles</a></li> Loading docs/html/training/wearables/apps/packaging.jd +1 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ Android Studio directly to the wearable is required.</p> <pre> 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.+'' <b>wearApp project(':wearable')</b> } </pre> Loading docs/html/training/wearables/data-layer/assets.jd +2 −2 Original line number Diff line number Diff line Loading @@ -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 } Loading docs/html/training/wearables/data-layer/data-items.jd +1 −1 Original line number Diff line number Diff line Loading @@ -120,5 +120,5 @@ public void onDataChanged(DataEventBuffer dataEvents) { <p> This is just a snippet that requires more implementation details. Learn about how to implement a full listener service or activity in <a href="{@docRoot}training/wearables/data-layer/listeners.html">Listening for Data Layer Events</a>. <a href="{@docRoot}training/wearables/data-layer/events.html">Listening for Data Layer Events</a>. </p> No newline at end of file Loading
docs/html/training/wearables/apps/index.jd +1 −1 Original line number Diff line number Diff line Loading @@ -69,6 +69,6 @@ in ADT. The rest of this training assumes you're using Android Studio. <dd>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.</dd> <dt><a href="{@docRoot}training/wearables/apps/packaging.html">Debugging over Bluetooth</a></dt> <dt><a href="{@docRoot}training/wearables/apps/bt-debugging.html">Debugging over Bluetooth</a></dt> <dd>Learn how to debug your wearable over Bluetooth instead of USB.</dd> </dl> No newline at end of file
docs/html/training/wearables/apps/layouts.jd +0 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,6 @@ page.title=Creating Custom Layouts <li><a href="#UiLibrary">Create Layouts with the Wearable UI Library</li> </ol> <!--STOPSHIP: link these --> <h2>You should also read</h2> <ul> <li><a href="{@docRoot}design/wear/index.html">Android Wear Design Principles</a></li> Loading
docs/html/training/wearables/apps/packaging.jd +1 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ Android Studio directly to the wearable is required.</p> <pre> 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.+'' <b>wearApp project(':wearable')</b> } </pre> Loading
docs/html/training/wearables/data-layer/assets.jd +2 −2 Original line number Diff line number Diff line Loading @@ -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 } Loading
docs/html/training/wearables/data-layer/data-items.jd +1 −1 Original line number Diff line number Diff line Loading @@ -120,5 +120,5 @@ public void onDataChanged(DataEventBuffer dataEvents) { <p> This is just a snippet that requires more implementation details. Learn about how to implement a full listener service or activity in <a href="{@docRoot}training/wearables/data-layer/listeners.html">Listening for Data Layer Events</a>. <a href="{@docRoot}training/wearables/data-layer/events.html">Listening for Data Layer Events</a>. </p> No newline at end of file