blob: 8f89d6784a1fa8a583d58a103a96beb93fb2a6fc [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2013 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<sample>
<name>DataLayer</name>
<group>Wearable</group>
<package>com.example.android.wearable.datalayer</package>
<minSdk>18</minSdk>
<wearable>
<has_handheld_app>true</has_handheld_app>
</wearable>
<strings>
<intro>
<![CDATA[
Sample demonstrating the usage of the GoogleApiClient in order to send data
from a handheld device to a wearable. The data transmitted is a picture taken by
the user of the sample.
]]>
</intro>
</strings>
<template src="base"/>
<template src="Wear"/>
<metadata>
<status>PUBLISHED</status>
<categories>UI, Wearable</categories>
<technologies>Android</technologies>
<languages>Java</languages>
<solutions>Mobile</solutions>
<level>ADVANCED</level>
<icon>Application/src/main/res/drawable-xxhdpi/ic_launcher.png</icon>
<screenshots>
<img>screenshots/phone_image.png</img>
<img>screenshots/wearable_background_image.png</img>
</screenshots>
<api_refs>
<ext>com.google.android.gms.wearable.DataApi</ext>
<ext>com.google.android.gms.wearable.DataEvent</ext>
<ext>com.google.android.gms.wearable.WearableListenerService</ext>
</api_refs>
<description>
<![CDATA[
This sample demonstrates how to work with a WearableListenerService,
to produce and consume DataEvents and effectively work with the DataLayer.
]]>
</description>
<intro>
<![CDATA[
This sample demonstrates how to make a handheld and an Android Wear device communicate
using the [DataApi][2].
It does this by sending a picture between connected devices.
An Activity is being used for both the connected devices which implement their parts of
the required interfaces.
It showcases how to use an [WearableListenerService][1] to consume DataEvents
as well as implementations for various required listeners when using the [DataApi][2],
[MessageApi][3] and [NodeApi][4].
[1]: https://developer.android.com/reference/com/google/android/gms/wearable/WearableListenerService.html
[2]: https://developer.android.com/reference/com/google/android/gms/wearable/DataApi.html
[3]: https://developer.android.com/reference/com/google/android/gms/wearable/MessageApi.html
[4]: https://developer.android.com/reference/com/google/android/gms/wearable/NodeApi.html
]]>
</intro>
</metadata>
</sample>