WallpaperManager在某些设备上缩小壁纸太小。我使用了下面的代码。Android WallpaperManager缩放比特图太小
Bitmap srcBitmap = .....
WallpaperManager wm = WallpaperManager
.getInstance(getApplicationContext());
int height = wm.getDesiredMinimumHeight();
int width = wm.getDesiredMinimumWidth();
wm.setBitmap(Bitmap.createScaledBitmap(srcBitmap, width , height , true);
在Android 4.0.4银河注意到壁纸填满整个屏幕。但在2.3版的Galaxy S2上,壁纸只填充屏幕中央的一个小矩形。
问候,
MP5