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