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