So I was developing wallpaper changer long time ago and got it released. After a while I started receiving comment the wallpaper not resizing correctly. Also I tried on different sizes of emus and they were right. I scale the bitmap correctly etc. but somehow android tends to rescale the wallpaper even bigger! Is there way to avoid that? My code:
Display display = parent.getWindowManager().getDefaultDisplay();
int width = display.getWidth();
int height = display.getHeight();
Bitmap scaled = Bitmap.createScaledBitmap(wallpaper, width, height, true);
WallpaperManager wm = WallpaperManager.getInstance(getContext());
wm.setBitmap(scaled);
I've been trying other ways too but nothing seems help, even if I afterwards check if the rescaled wallpaper is right size etc. :( Any ideas?