第一次使用WallpaperManager。我不知道你在销毁的时候是recycle还是WallpaperManager。val wallpaperManager = WallpaperManager.getInstance(this) val file = File("$dir${File.separator}wallpaper.jpg")
val w
我正在构建一个启动器,需要访问用户当前的背景墙纸,但每次启动应用程序时,我都会在日志中收到警告W/WallpaperManager: No permission to access wallpaper,下面是我使用的代码:Drawable wallpaperDrawable= wallpaperManager.getDrawable();
Image
但是我在这两行得到了error can not be resolved or is not a fieldIntent intent = new Intent( WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER);
intent.putExtra(WallpaperManager<