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>23</targetSdkVersion>
27    <targetSdkVersionWear>22</targetSdkVersionWear>
28
29    <wearable>
30        <has_handheld_app>true</has_handheld_app>
31    </wearable>
32
33    <strings>
34        <intro>
35            <![CDATA[
36This sample application provides a showcase of available notification styles and
37demonstrates various features of the Android Wear notifications API. Running the sample on your
38companion allows you to select between various notification styles and to see how these
39notifications are displayed, both in a phone\'s notification shade and on the wearable.
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>screenshots/ic_launcher.png</icon>
54        <screenshots>
55            <img>screenshots/companion-content-action.png</img>
56            <img>screenshots/content-action</img>
57            <img>screenshots/content-icon-menu</img>
58        </screenshots>
59        <api_refs>
60            <android>android.app.Notification</android>
61            <android>android.support.v4.app.NotificationCompat</android>
62            <android>android.support.v4.app.NotificationManagerCompat</android>
63            <android>android.support.v4.app.RemoteInput</android>
64            <android>android.support.wearable.view.WearableListView</android>
65        </api_refs>
66        <description>
67This sample showcases the available notification styles on a device and wearable.
68        </description>
69        <intro>
70This sample app enables the user to choose a notification type (the selection is done on the phone),
71which it then displays on the phone and wearable. The notification is built using
72[NotificationCompat.Builder][1] and [NotificationCompat.WearableExtender][2].
73
74See [Creating a Notification][3] for all the details on how to create a notification with wearable features.
75
76On the wearable side, the sample also shows how to create a custom layout using [WearableListView][4].
77
78[1]: http://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder.html
79[2]: https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender.html
80[3]: https://developer.android.com/training/wearables/notifications/creating.html
81[4]: https://developer.android.com/training/wearables/apps/layouts.html#UiLibrary
82        </intro>
83    </metadata>
84</sample>
85