2
我用下面的代码获取当前壁纸:使用当前壁纸的动态壁纸背景
final WallpaperManager wallpaperManager = WallpaperManager.getInstance(this);
final Drawable wallpaperDrawable = wallpaperManager.getDrawable();
如何创建从该位图?
当我创建res文件夹的位图就像我用这个
Resources res = getApplicationContext().getResources();
b = BitmapFactory.decodeResource(res, R.drawable.wall);
什么代码,我应该用它来获得当前壁纸为位图,这样我可以借鉴它在我的画布上,并用它作为我的生活壁纸背景?
感谢这个工作对我来说:) – Badal