• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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=".TiltWatchFaceService"
80                android:label="@string/tilt_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_tilt" />
88            <meta-data
89                    android:name="com.google.android.wearable.watchface.preview_circular"
90                    android:resource="@drawable/preview_tilt_circular" />
91            <meta-data
92                    android:name="com.google.android.wearable.watchface.companionConfigurationAction"
93                    android:value="com.example.android.wearable.watchface.CONFIG_TILT" />
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        <service
124                android:name=".DigitalWatchFaceService"
125                android:label="@string/digital_name"
126                android:permission="android.permission.BIND_WALLPAPER" >
127            <meta-data
128                    android:name="android.service.wallpaper"
129                    android:resource="@xml/watch_face" />
130            <meta-data
131                    android:name="com.google.android.wearable.watchface.preview"
132                    android:resource="@drawable/preview_digital" />
133            <meta-data
134                    android:name="com.google.android.wearable.watchface.preview_circular"
135                    android:resource="@drawable/preview_digital_circular" />
136            <meta-data
137                    android:name="com.google.android.wearable.watchface.companionConfigurationAction"
138                    android:value="com.example.android.wearable.watchface.CONFIG_DIGITAL" />
139            <meta-data
140                    android:name="com.google.android.wearable.watchface.wearableConfigurationAction"
141                    android:value="com.example.android.wearable.watchface.CONFIG_DIGITAL" />
142            <intent-filter>
143                <action android:name="android.service.wallpaper.WallpaperService" />
144                <category android:name="com.google.android.wearable.watchface.category.WATCH_FACE" />
145            </intent-filter>
146        </service>
147
148        <!-- All intent-filters for config actions must include the categories
149            com.google.android.wearable.watchface.category.WEARABLE_CONFIGURATION
150            and android.intent.category.DEFAULT. -->
151
152        <activity
153                android:name=".DigitalWatchFaceWearableConfigActivity"
154                android:label="@string/digital_config_name">
155            <intent-filter>
156                <action android:name="com.example.android.wearable.watchface.CONFIG_DIGITAL" />
157                <category android:name="com.google.android.wearable.watchface.category.WEARABLE_CONFIGURATION" />
158                <category android:name="android.intent.category.DEFAULT" />
159            </intent-filter>
160        </activity>
161
162        <service
163                android:name=".CalendarWatchFaceService"
164                android:label="@string/calendar_name"
165                android:permission="android.permission.BIND_WALLPAPER" >
166            <meta-data
167                    android:name="android.service.wallpaper"
168                    android:resource="@xml/watch_face" />
169            <meta-data
170                    android:name="com.google.android.wearable.watchface.preview"
171                    android:resource="@drawable/preview_calendar" />
172            <meta-data
173                    android:name="com.google.android.wearable.watchface.preview_circular"
174                    android:resource="@drawable/preview_calendar_circular" />
175            <intent-filter>
176                <action android:name="android.service.wallpaper.WallpaperService" />
177                <category android:name="com.google.android.wearable.watchface.category.WATCH_FACE" />
178            </intent-filter>
179        </service>
180
181        <service android:name=".DigitalWatchFaceConfigListenerService">
182            <intent-filter>
183                <action android:name="com.google.android.gms.wearable.BIND_LISTENER" />
184            </intent-filter>
185        </service>
186
187        <meta-data
188                android:name="com.google.android.gms.version"
189                android:value="@integer/google_play_services_version" />
190
191    </application>
192
193</manifest>
194