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>Wearable Notifications</name> 22 <group>Wearable</group> 23 <package>com.example.android.support.wearable.notifications</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[ 35This sample application provides a showcase of available notification styles and 36demonstrates various features of the Android Wear notifications API. Running the sample on your 37companion allows you to select between various notification styles and to see how these 38notifications are displayed, both in a phone\'s notification shade and on the wearable. 39 ]]> 40 </intro> 41 </strings> 42 43 <template src="base"/> 44 <template src="Wear"/> 45 <metadata> 46 <status>PUBLISHED</status> 47 <categories>Wearable</categories> 48 <technologies>Android</technologies> 49 <languages>Java</languages> 50 <solutions>Mobile</solutions> 51 <level>INTERMEDIATE</level> 52 <icon>screenshots/ic_launcher.png</icon> 53 <screenshots> 54 <img>screenshots/companion-content-action.png</img> 55 <img>screenshots/content-action</img> 56 <img>screenshots/content-icon-menu</img> 57 </screenshots> 58 <api_refs> 59 <android>android.app.Notification</android> 60 <android>android.support.v4.app.NotificationCompat</android> 61 <android>android.support.v4.app.NotificationManagerCompat</android> 62 <android>android.support.v4.app.RemoteInput</android> 63 <android>android.support.wearable.view.WearableListView</android> 64 </api_refs> 65 <description> 66This sample showcases the available notification styles on a device and wearable. 67 </description> 68 <intro> 69This sample app enables the user to choose a notification type (the selection is done on the phone), 70which it then displays on the phone and wearable. The notification is built using 71[NotificationCompat.Builder][1] and [NotificationCompat.WearableExtender][2]. 72 73See [Creating a Notification][3] for all the details on how to create a notification with wearable features. 74 75On the wearable side, the sample also shows how to create a custom layout using [WearableListView][4]. 76 77[1]: http://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder.html 78[2]: https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender.html 79[3]: https://developer.android.com/training/wearables/notifications/creating.html 80[4]: https://developer.android.com/training/wearables/apps/layouts.html#UiLibrary 81 </intro> 82 </metadata> 83</sample> 84