Home | History | Annotate | Download | only in Wearable
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2014 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 
     17 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     18         package="com.example.android.wearable.watchface" >
     19 
     20     <uses-sdk android:minSdkVersion="21"
     21         android:targetSdkVersion="21" />
     22 
     23     <uses-feature android:name="android.hardware.type.watch" />
     24 
     25     <!-- Required to act as a custom watch face. -->
     26     <uses-permission android:name="com.google.android.permission.PROVIDE_BACKGROUND" />
     27     <uses-permission android:name="android.permission.WAKE_LOCK" />
     28 
     29     <!-- Calendar permission used by CalendarWatchFaceService -->
     30     <uses-permission android:name="android.permission.READ_CALENDAR" />
     31 
     32     <application
     33             android:allowBackup="true"
     34             android:icon="@drawable/ic_launcher"
     35             android:label="@string/app_name" >
     36 
     37         <service
     38                 android:name=".AnalogWatchFaceService"
     39                 android:label="@string/analog_name"
     40                 android:allowEmbedded="true"
     41                 android:taskAffinity=""
     42                 android:permission="android.permission.BIND_WALLPAPER" >
     43             <meta-data
     44                     android:name="android.service.wallpaper"
     45                     android:resource="@xml/watch_face" />
     46             <meta-data
     47                     android:name="com.google.android.wearable.watchface.preview"
     48                     android:resource="@drawable/preview_analog" />
     49             <meta-data
     50                     android:name="com.google.android.clockwork.home.preview_circular"
     51                     android:resource="@drawable/preview_analog_circular" />
     52             <meta-data
     53                     android:name="com.google.android.wearable.watchface.companionConfigurationAction"
     54                     android:value="com.example.android.wearable.watchface.CONFIG_ANALOG" />
     55             <intent-filter>
     56                 <action android:name="android.service.wallpaper.WallpaperService" />
     57                 <category android:name="com.google.android.wearable.watchface.category.WATCH_FACE" />
     58             </intent-filter>
     59         </service>
     60 
     61         <service
     62                 android:name=".SweepWatchFaceService"
     63                 android:label="@string/sweep_name"
     64                 android:allowEmbedded="true"
     65                 android:taskAffinity=""
     66                 android:permission="android.permission.BIND_WALLPAPER" >
     67             <meta-data
     68                     android:name="android.service.wallpaper"
     69                     android:resource="@xml/watch_face" />
     70             <meta-data
     71                     android:name="com.google.android.wearable.watchface.preview"
     72                     android:resource="@drawable/preview_analog" />
     73             <meta-data
     74                     android:name="com.google.android.clockwork.home.preview_circular"
     75                     android:resource="@drawable/preview_analog_circular" />
     76             <intent-filter>
     77                 <action android:name="android.service.wallpaper.WallpaperService" />
     78                 <category android:name="com.google.android.wearable.watchface.category.WATCH_FACE" />
     79             </intent-filter>
     80         </service>
     81 
     82         <service
     83                 android:name=".TiltWatchFaceService"
     84                 android:label="@string/tilt_name"
     85                 android:allowEmbedded="true"
     86                 android:taskAffinity=""
     87                 android:permission="android.permission.BIND_WALLPAPER" >
     88             <meta-data
     89                     android:name="android.service.wallpaper"
     90                     android:resource="@xml/watch_face" />
     91             <meta-data
     92                     android:name="com.google.android.wearable.watchface.preview"
     93                     android:resource="@drawable/preview_tilt" />
     94             <meta-data
     95                     android:name="com.google.android.clockwork.home.preview_circular"
     96                     android:resource="@drawable/preview_tilt_circular" />
     97             <meta-data
     98                     android:name="com.google.android.wearable.watchface.companionConfigurationAction"
     99                     android:value="com.example.android.wearable.watchface.CONFIG_TILT" />
    100 
    101             <intent-filter>
    102                 <action android:name="android.service.wallpaper.WallpaperService" />
    103                 <category android:name="com.google.android.wearable.watchface.category.WATCH_FACE" />
    104             </intent-filter>
    105         </service>
    106 
    107         <service
    108                 android:name=".CardBoundsWatchFaceService"
    109                 android:label="@string/card_bounds_name"
    110                 android:allowEmbedded="true"
    111                 android:taskAffinity=""
    112                 android:permission="android.permission.BIND_WALLPAPER" >
    113             <meta-data
    114                     android:name="android.service.wallpaper"
    115                     android:resource="@xml/watch_face" />
    116             <meta-data
    117                     android:name="com.google.android.wearable.watchface.preview"
    118                     android:resource="@drawable/preview_card_bounds" />
    119             <meta-data
    120                     android:name="com.google.android.clockwork.home.preview_circular"
    121                     android:resource="@drawable/preview_card_bounds_circular" />
    122             <meta-data
    123                     android:name="com.google.android.wearable.watchface.companionConfigurationAction"
    124                     android:value="com.example.android.wearable.watchface.CONFIG_CARD_BOUNDS" />
    125             <intent-filter>
    126                 <action android:name="android.service.wallpaper.WallpaperService" />
    127                 <category android:name="com.google.android.wearable.watchface.category.WATCH_FACE" />
    128             </intent-filter>
    129         </service>
    130 
    131         <service
    132                 android:name=".DigitalWatchFaceService"
    133                 android:label="@string/digital_name"
    134                 android:allowEmbedded="true"
    135                 android:taskAffinity=""
    136                 android:permission="android.permission.BIND_WALLPAPER" >
    137             <meta-data
    138                     android:name="android.service.wallpaper"
    139                     android:resource="@xml/watch_face" />
    140             <meta-data
    141                     android:name="com.google.android.wearable.watchface.preview"
    142                     android:resource="@drawable/preview_digital" />
    143             <meta-data
    144                     android:name="com.google.android.clockwork.home.preview_circular"
    145                     android:resource="@drawable/preview_digital_circular" />
    146             <meta-data
    147                     android:name="com.google.android.wearable.watchface.companionConfigurationAction"
    148                     android:value="com.example.android.wearable.watchface.CONFIG_DIGITAL" />
    149             <meta-data
    150                     android:name="com.google.android.wearable.watchface.wearableConfigurationAction"
    151                     android:value="com.example.android.wearable.watchface.CONFIG_DIGITAL" />
    152             <intent-filter>
    153                 <action android:name="android.service.wallpaper.WallpaperService" />
    154                 <category android:name="com.google.android.wearable.watchface.category.WATCH_FACE" />
    155             </intent-filter>
    156         </service>
    157 
    158         <!-- All intent-filters for config actions must include the categories
    159             com.google.android.wearable.watchface.category.WEARABLE_CONFIGURATION
    160             and android.intent.category.DEFAULT. -->
    161 
    162         <activity
    163                 android:name=".DigitalWatchFaceWearableConfigActivity"
    164                 android:label="@string/digital_config_name">
    165             <intent-filter>
    166                 <action android:name="com.example.android.wearable.watchface.CONFIG_DIGITAL" />
    167                 <category android:name="com.google.android.wearable.watchface.category.WEARABLE_CONFIGURATION" />
    168                 <category android:name="android.intent.category.DEFAULT" />
    169             </intent-filter>
    170         </activity>
    171 
    172         <service
    173                 android:name=".CalendarWatchFaceService"
    174                 android:label="@string/calendar_name"
    175                 android:allowEmbedded="true"
    176                 android:taskAffinity=""
    177                 android:permission="android.permission.BIND_WALLPAPER" >
    178             <meta-data
    179                     android:name="android.service.wallpaper"
    180                     android:resource="@xml/watch_face" />
    181             <meta-data
    182                     android:name="com.google.android.wearable.watchface.preview"
    183                     android:resource="@drawable/preview_calendar" />
    184             <meta-data
    185                     android:name="com.google.android.clockwork.home.preview_circular"
    186                     android:resource="@drawable/preview_calendar_circular" />
    187             <intent-filter>
    188                 <action android:name="android.service.wallpaper.WallpaperService" />
    189                 <category android:name="com.google.android.wearable.watchface.category.WATCH_FACE" />
    190             </intent-filter>
    191         </service>
    192 
    193         <service android:name=".DigitalWatchFaceConfigListenerService">
    194             <intent-filter>
    195                 <action android:name="com.google.android.gms.wearable.BIND_LISTENER" />
    196             </intent-filter>
    197         </service>
    198 
    199         <meta-data
    200                 android:name="com.google.android.gms.version"
    201                 android:value="@integer/google_play_services_version" />
    202 
    203     </application>
    204 
    205 </manifest>
    206