• 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
18
19
20<sample>
21    <name>AgendaData</name>
22    <group>Wearable</group>
23    <package>com.example.android.wearable.agendadata</package>
24
25    <minSdk>18</minSdk>
26    <targetSdkVersion>25</targetSdkVersion>
27    <minSdkVersionWear>23</minSdkVersionWear>
28    <targetSdkVersionWear>25</targetSdkVersionWear>
29
30    <dependency>com.android.support:design:24.0.0</dependency>
31
32    <wearable>
33        <has_handheld_app>true</has_handheld_app>
34    </wearable>
35
36    <strings>
37        <intro>
38            <![CDATA[
39            Syncs calendar events to your wearable at the press of a button, using the Wearable
40            DataApi to transmit data such as event time, description, and background image. The
41            DataItems can be deleted individually via an action on the event notifications, or all
42            at once via a button on the companion. When deleted using the notification action, a
43            ConfirmationActivity is used to indicate success or failure.
44            ]]>
45        </intro>
46    </strings>
47
48    <template src="base"/>
49    <template src="Wear"/>
50    <metadata>
51        <status>PUBLISHED</status>
52        <categories>Wearable</categories>
53        <technologies>Android</technologies>
54        <languages>Java</languages>
55        <solutions>Mobile</solutions>
56        <level>INTERMEDIATE</level>
57        <icon>Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png</icon>
58        <screenshots>
59            <img>screenshots/companion_agenda_data.png</img>
60            <img>screenshots/dummy_calendar_event.png</img>
61        </screenshots>
62        <api_refs>
63            <android>android.app.IntentService</android>
64            <ext>gms:com.google.android.gms.wearable.DataApi</ext>
65            <ext>gms:com.google.android.gms.wearable.Node</ext>
66        </api_refs>
67        <description>
68<![CDATA[
69Sample demonstrating sync of calendar events to a wearable by the press of a button.
70]]>
71        </description>
72        <intro>
73<![CDATA[
74Using the Wearable [DataApi][1] allows to transmit data such as event time,
75description, and background image.
76
77The sent [DataItems][2] can be deleted individually via an action on the event notifications,
78or all at once via a button on the companion.
79
80When deleted using the notification action, a ConfirmationActivity is used to indicate
81success or failure. The sample shows implementations for both the success as well failure case.
82
83[1]: https://developer.android.com/reference/com/google/android/gms/wearable/DataApi.html
84[2]: https://developer.android.com/reference/com/google/android/gms/wearable/DataItem.html
85]]>
86        </intro>
87    </metadata>
88</sample>
89