• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Copyright 2013 The Android Open Source Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9     http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17<sample>
18    <name>DataLayer</name>
19    <group>Wearable</group>
20    <package>com.example.android.wearable.datalayer</package>
21
22    <minSdk>18</minSdk>
23    <targetSdkVersion>27</targetSdkVersion>
24    <compileSdkVersionWear>26</compileSdkVersionWear>
25    <targetSdkVersionWear>26</targetSdkVersionWear>
26
27    <multiDexEnabled>true</multiDexEnabled>
28
29    <wearable>
30        <has_handheld_app>true</has_handheld_app>
31    </wearable>
32
33    <strings>
34        <intro>
35            <![CDATA[
36            Sample demonstrating the usage of the GoogleApiClient in order to send data
37            from a handheld device to a wearable. The data transmitted is a picture taken by
38            the user of the sample.
39            ]]>
40        </intro>
41    </strings>
42    <template src="base"/>
43    <template src="Wear"/>
44    <metadata>
45        <status>PUBLISHED</status>
46        <categories>UI, Wearable</categories>
47        <technologies>Android</technologies>
48        <languages>Java</languages>
49        <solutions>Mobile</solutions>
50        <level>ADVANCED</level>
51        <icon>Application/src/main/res/drawable-xxhdpi/ic_launcher.png</icon>
52        <screenshots>
53            <img>screenshots/phone_image.png</img>
54            <img>screenshots/wearable_background_image.png</img>
55        </screenshots>
56        <api_refs>
57            <ext>gms:com.google.android.gms.wearable.DataApi</ext>
58            <ext>gms:com.google.android.gms.wearable.DataEvent</ext>
59            <ext>gms:com.google.android.gms.wearable.WearableListenerService</ext>
60        </api_refs>
61        <description>
62<![CDATA[
63This sample demonstrates how to work with a WearableListenerService,
64to produce and consume DataEvents and effectively work with the DataLayer.
65]]>
66        </description>
67        <intro>
68<![CDATA[
69This sample demonstrates how to make a handheld and an Wear device communicate
70using the [DataApi][2].
71It does this by sending a picture between connected devices.
72
73An Activity is being used for both the connected devices which implement their parts of
74the required interfaces.
75
76It showcases how to use an [WearableListenerService][1] to consume DataEvents
77as well as implementations for various required listeners when using the [DataApi][2],
78[MessageApi][3] and [NodeApi][4].
79
80[1]: https://developer.android.com/reference/com/google/android/gms/wearable/WearableListenerService.html
81[2]: https://developer.android.com/reference/com/google/android/gms/wearable/DataApi.html
82[3]: https://developer.android.com/reference/com/google/android/gms/wearable/MessageApi.html
83[4]: https://developer.android.com/reference/com/google/android/gms/wearable/NodeApi.html
84]]>
85        </intro>
86    </metadata>
87</sample>
88