0

我正在尝试从应用程序图标和动态壁纸列表中启动我的动态壁纸。它可以从实时列表中使用,但从应用程序图标中它会中断。

以下是两者的代码:

    <service
        android:label="@string/appName"
        android:name=".LiveService"        
        android:permission="android.permission.BIND_WALLPAPER"
        >

        <intent-filter android:priority="1">
            <action android:name="android.service.wallpaper.WallpaperService" />
        </intent-filter>

        <meta-data android:name="android.service.wallpaper" android:resource="@xml/wallpaper" />
    </service>
4

1 回答 1

1

您不能自己启动 WallPaperService。系统管理对您的服务和引擎的所有调用。目前没有办法让你的壁纸作为“应用程序”运行。

当前的修复似乎是在桌面上安装一个图标,将它们引导到动态壁纸列表。

于 2012-08-14T21:34:05.160 回答