我正在尝试从应用程序图标和动态壁纸列表中启动我的动态壁纸。它从实时列表工作,但从应用程序图标中它会中断。
以下是它们的代码:
<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>
您不能自己启动墙纸服务。系统管理对您的服务的所有调用,从而管理您的引擎。目前没有办法让您的壁纸作为"应用程序"运行。
当前的修复似乎是在桌面上安装一个图标,将它们定向到动态壁纸列表。