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