I'm using Android Studio 1.0.2 and I've created a new watch face project by following instructions on Android developer site: https://developer.android.com/training/wearables/watch-faces/service.html
I ended up with an application that can be run on my watch, showing the Hello round world
text, but the watch face is not available/visible in the watch face picker. Just as if there is no service registration in manifest file.
I have no idea what may be wrong - I double checked all steps and necessary settings in manifest file.
Does anyone have any idea what to check? Have anyone experienced the same problem?
Thank you!
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="cz.dmn.meteorwatch" >
<uses-permission android:name="com.google.android.permission.PROVIDE_BACKGROUND" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-feature android:name="android.hardware.type.watch" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.DeviceDefault" >
<activity
android:name=".WatchfaceActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<service
android:name=".MeteorWatchFaceService"
android:label="Meteor"
android:allowEmbedded="true"
android:taskAffinity=""
android:permission="android.permission.BIND_WALLPAPER" >
<meta-data
android:name="android.service.wallpaper"
android:resource="@xml/watch_face" />
<meta-data
android:name="com.google.android.wearable.watchface.preview"
android:resource="@drawable/preview" />
<!--<meta-data
android:name="com.google.android.wearable.watchface.preview_circular"
android:resource="@drawable/preview" />-->
<intent-filter>
<action android:name="android.service.wallpaper.WallpaperService" />
<category
android:name=
"com.google.android.wearable.watchface.category.WATCH_FACE" />
</intent-filter>
</service>