首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >watchface服务在square设备上不显示

watchface服务在square设备上不显示
EN

Stack Overflow用户
提问于 2015-01-24 21:14:16
回答 1查看 166关注 0票数 0

我正在开发一个Watchface (用于AndroidWear),它在圆形模拟器和真实设备上工作得很好,但我不能在正方形模拟器上选择Watchface-Service。

下面是我的AndroidManifest.xml代码片段

代码语言:javascript
复制
<uses-feature android:name="android.hardware.type.watch" />

<uses-permission     android:name="com.google.android.permission.PROVIDE_BACKGROUND" />
<uses-permission     android:name="android.permission.WAKE_LOCK" />

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@android:style/Theme.DeviceDefault" >
    <service
        android:name=".WatchFaceService"
        android:label="@string/app_label"
        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_square" />
        <meta-data
            android:name="com.google.android.wearable.watchface.preview_circular"
            android:resource="@drawable/preview_circular"/>
        <meta-data
            android:name="com.google.android.wearable.watchface.companionConfigurationAction"
            android:value="com.example.android.wearable.watchface.CONFIG_ANALOG" />

        <intent-filter>
            <action android:name="android.service.wallpaper.WallpaperService" />
            <category android:name="com.google.android.wearable.watchface.category.WATCH_FACE" />
        </intent-filter>
    </service>
</application>

我搜索了拼写错误,但没有找到任何拼写错误。

EN

回答 1

Stack Overflow用户

发布于 2015-01-26 00:04:22

好吧,正如我所想的:我至少要用棒棒糖。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28125823

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档