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