1<?xml version="1.0" encoding="utf-8"?> 2<manifest xmlns:android="http://schemas.android.com/apk/res/android"> 3 4 <application 5 android:allowBackup="true" 6 android:fullBackupContent="false" 7 android:icon="@mipmap/ic_launcher" 8 android:label="@string/app_name" 9 android:supportsRtl="true" 10 android:theme="@android:style/Theme.DeviceDefault"> 11 12 <activity 13 android:name=".ConfigActivity" 14 android:exported="true" 15 android:label="@string/configuration_title"> 16 <intent-filter> 17 <action android:name="androidx.wear.watchface.editor.action.WATCH_FACE_EDITOR" /> 18 19 <category android:name="com.google.android.wearable.watchface.category.WEARABLE_CONFIGURATION" /> 20 <category android:name="android.intent.category.DEFAULT" /> 21 </intent-filter> 22 </activity> 23 24 <service 25 android:name=".WatchFaceService" 26 android:directBootAware="true" 27 android:exported="true" 28 android:label="@string/app_name" 29 android:permission="android.permission.BIND_WALLPAPER"> 30 31 <intent-filter> 32 <action android:name="android.service.wallpaper.WallpaperService" /> 33 <category android:name="com.google.android.wearable.watchface.category.WATCH_FACE" /> 34 </intent-filter> 35 36 <meta-data 37 android:name="com.google.android.wearable.watchface.preview" 38 android:resource="@drawable/preview" /> 39 40 <meta-data 41 android:name="android.service.wallpaper" 42 android:resource="@xml/watch_face" /> 43 44 <meta-data 45 android:name="com.google.android.wearable.watchface.wearableConfigurationAction" 46 android:value="androidx.wear.watchface.editor.action.WATCH_FACE_EDITOR" /> 47 48 <meta-data 49 android:name="com.google.android.wearable.watchface.companionBuiltinConfigurationEnabled" 50 android:value="true" /> 51 52 <meta-data 53 android:name="androidx.wear.watchface.XmlSchemaAndComplicationSlotsDefinition" 54 android:resource="@xml/xml_watchface" /> 55 </service> 56 57 </application> 58 59 <uses-feature android:name="android.hardware.type.watch" /> 60 61 <uses-permission android:name="android.permission.WAKE_LOCK" /> 62 63</manifest> 64