Home | History | Annotate | Download | only in main
      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:permission="android.permission.BIND_WALLPAPER" >
     41             <meta-data
     42                     android:name="android.service.wallpaper"
     43                     android:resource="@xml/watch_face" />
     44             <meta-data
     45                     android:name="com.google.android.wearable.watchface.preview"
     46                     android:resource="@drawable/preview_analog" />
     47             <meta-data
     48                     android:name="com.google.android.wearable.watchface.preview_circular"
     49                     android:resource="@drawable/preview_analog_circular" />
     50             <meta-data
     51                     android:name="com.google.android.wearable.watchface.companionConfigurationAction"
     52                     android:value="com.example.android.wearable.watchface.CONFIG_ANALOG" />
     53             <intent-filter>
     54                 <action android:name="android.service.wallpaper.WallpaperService" />
     55                 <category android:name="com.google.android.wearable.watchface.category.WATCH_FACE" />
     56             </intent-filter>
     57         </service>
     58 
     59         <service
     60                 android:name=".SweepWatchFaceService"
     61                 android:label="@string/sweep_name"
     62                 android:permission="android.permission.BIND_WALLPAPER" >
     63             <meta-data
     64                     android:name="android.service.wallpaper"
     65                     android:resource="@xml/watch_face" />
     66             <meta-data
     67                     android:name="com.google.android.wearable.watchface.preview"
     68                     android:resource="@drawable/preview_analog" />
     69             <meta-data
     70                     android:name="com.google.android.wearable.watchface.preview_circular"
     71                     android:resource="@drawable/preview_analog_circular" />
     72             <intent-filter>
     73                 <action android:name="android.service.wallpaper.WallpaperService" />
     74                 <category android:name="com.google.android.wearable.watchface.category.WATCH_FACE" />
     75             </intent-filter>
     76         </service>
     77 
     78         <service
     79                 android:name=".OpenGLWatchFaceService"
     80                 android:label="@string/opengl_name"
     81                 android:permission="android.permission.BIND_WALLPAPER" >
     82             <meta-data
     83                     android:name="android.service.wallpaper"
     84                     android:resource="@xml/watch_face" />
     85             <meta-data
     86                     android:name="com.google.android.wearable.watchface.preview"
     87                     android:resource="@drawable/preview_opengl" />
     88             <meta-data
     89                     android:name="com.google.android.wearable.watchface.preview_circular"
     90                     android:resource="@drawable/preview_opengl_circular" />
     91             <meta-data
     92                     android:name="com.google.android.wearable.watchface.companionConfigurationAction"
     93                     android:value="com.example.android.wearable.watchface.CONFIG_OPENGL" />
     94 
     95             <intent-filter>
     96                 <action android:name="android.service.wallpaper.WallpaperService" />
     97                 <category android:name="com.google.android.wearable.watchface.category.WATCH_FACE" />
     98             </intent-filter>
     99         </service>
    100 
    101         <service
    102                 android:name=".CardBoundsWatchFaceService"
    103                 android:label="@string/card_bounds_name"
    104                 android:permission="android.permission.BIND_WALLPAPER" >
    105             <meta-data
    106                     android:name="android.service.wallpaper"
    107                     android:resource="@xml/watch_face" />
    108             <meta-data
    109                     android:name="com.google.android.wearable.watchface.preview"
    110                     android:resource="@drawable/preview_card_bounds" />
    111             <meta-data
    112                     android:name="com.google.android.wearable.watchface.preview_circular"
    113                     android:resource="@drawable/preview_card_bounds_circular" />
    114             <meta-data
    115                     android:name="com.google.android.wearable.watchface.companionConfigurationAction"
    116                     android:value="com.example.android.wearable.watchface.CONFIG_CARD_BOUNDS" />
    117             <intent-filter>
    118                 <action android:name="android.service.wallpaper.WallpaperService" />
    119                 <category android:name="com.google.android.wearable.watchface.category.WATCH_FACE" />
    120             </intent-filter>
    121         </service>
    122 
    123 
    124         <service
    125                 android:name=".InteractiveWatchFaceService"
    126                 android:label="@string/interactive_name"
    127                 android:permission="android.permission.BIND_WALLPAPER" >
    128             <meta-data
    129                 android:name="android.service.wallpaper"
    130                 android:resource="@xml/watch_face" />
    131             <meta-data
    132                 android:name="com.google.android.wearable.watchface.preview"
    133                 android:resource="@drawable/preview_interactive" />
    134             <meta-data
    135                 android:name="com.google.android.wearable.watchface.preview_circular"
    136                 android:resource="@drawable/preview_interactive_circular" />
    137             <intent-filter>
    138                 <action android:name="android.service.wallpaper.WallpaperService" />
    139                 <category
    140                     android:name="com.google.android.wearable.watchface.category.WATCH_FACE" />
    141             </intent-filter>
    142         </service>
    143 
    144         <service
    145                 android:name=".DigitalWatchFaceService"
    146                 android:label="@string/digital_name"
    147                 android:permission="android.permission.BIND_WALLPAPER" >
    148             <meta-data
    149                     android:name="android.service.wallpaper"
    150                     android:resource="@xml/watch_face" />
    151             <meta-data
    152                     android:name="com.google.android.wearable.watchface.preview"
    153                     android:resource="@drawable/preview_digital" />
    154             <meta-data
    155                     android:name="com.google.android.wearable.watchface.preview_circular"
    156                     android:resource="@drawable/preview_digital_circular" />
    157             <meta-data
    158                     android:name="com.google.android.wearable.watchface.companionConfigurationAction"
    159                     android:value="com.example.android.wearable.watchface.CONFIG_DIGITAL" />
    160             <meta-data
    161                     android:name="com.google.android.wearable.watchface.wearableConfigurationAction"
    162                     android:value="com.example.android.wearable.watchface.CONFIG_DIGITAL" />
    163             <intent-filter>
    164                 <action android:name="android.service.wallpaper.WallpaperService" />
    165                 <category android:name="com.google.android.wearable.watchface.category.WATCH_FACE" />
    166             </intent-filter>
    167         </service>
    168 
    169         <!-- All intent-filters for config actions must include the categories
    170             com.google.android.wearable.watchface.category.WEARABLE_CONFIGURATION
    171             and android.intent.category.DEFAULT. -->
    172 
    173         <activity
    174                 android:name=".DigitalWatchFaceWearableConfigActivity"
    175                 android:label="@string/digital_config_name">
    176             <intent-filter>
    177                 <action android:name="com.example.android.wearable.watchface.CONFIG_DIGITAL" />
    178                 <category android:name="com.google.android.wearable.watchface.category.WEARABLE_CONFIGURATION" />
    179                 <category android:name="android.intent.category.DEFAULT" />
    180             </intent-filter>
    181         </activity>
    182 
    183         <service
    184                 android:name=".CalendarWatchFaceService"
    185                 android:label="@string/calendar_name"
    186                 android:permission="android.permission.BIND_WALLPAPER" >
    187             <meta-data
    188                     android:name="android.service.wallpaper"
    189                     android:resource="@xml/watch_face" />
    190             <meta-data
    191                     android:name="com.google.android.wearable.watchface.preview"
    192                     android:resource="@drawable/preview_calendar" />
    193             <meta-data
    194                     android:name="com.google.android.wearable.watchface.preview_circular"
    195                     android:resource="@drawable/preview_calendar_circular" />
    196             <intent-filter>
    197                 <action android:name="android.service.wallpaper.WallpaperService" />
    198                 <category android:name="com.google.android.wearable.watchface.category.WATCH_FACE" />
    199             </intent-filter>
    200         </service>
    201 
    202         <service android:name=".DigitalWatchFaceConfigListenerService">
    203             <intent-filter>
    204                 <action android:name="com.google.android.gms.wearable.BIND_LISTENER" />
    205             </intent-filter>
    206         </service>
    207 
    208         <meta-data
    209                 android:name="com.google.android.gms.version"
    210                 android:value="@integer/google_play_services_version" />
    211 
    212     </application>
    213 
    214 </manifest>
    215