我正在尝试从应用程序图标和动态壁纸列表中启动我的动态壁纸。它可以从实时列表中使用,但从应用程序图标中它会中断。
以下是两者的代码:
<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>