jjzjj

mImageReader

全部标签

android - 在 Android 上获取动态壁纸的图像/屏幕截图?

有没有办法使用WallpaperManagerAPI获取当前动态壁纸的图像?我尝试了以下代码,但它只是返回了用于设置壁纸的应用程序的图标。PackageManagerpm=getApplicationContext().getPackageManager();//Checkifuserhassetalivewallpaperif(WallpaperManager.getInstance(this).getWallpaperInfo()!=null){DrawablewallpaperDrawable=WallpaperManager.getInstance(this).getWallp