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