我想获取lockScreen和主屏幕的当前墙纸可绘制对象,但我不知道如何获取LockScreen墙纸。
我已使用此代码获取可绘制的HomeScreen壁纸及其工作正常
Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding");
对于LockScreen可绘制对象,
WallpaperManager wallpaperManager = WallpaperManager.getInstance(this);
Drawable wallpaperDrawable = wallpaperManager.getDrawable();
这将返回空可绘制值...
还有其他方法可以获取当前的锁屏壁纸!