I have a big problem... Finally finished my app, but can't distribute it because on some phones wallpaper quality is bad. I'm testing my app on Note 4, Galaxy S4 and Galaxy S2. Note4 and S2 wallpaper quality is perfect but with S4 (think there will be more phones with such a problem) I don't know what to do. Tried lot of different ways to set wallpaper, with crop, with options, directly without crop and options, jpg, png, but every time is the same result, even with android wallpaper set it's the same. Thank you for any help. There is screen shoots and simple code to set wallpaper:
imgur.com/3hngfbm Note4 - upscale with PS from 2160x1920 to 2880x2560 JPG (can't post 3 links)
S2 - downscale with PS from 2160x1920 to 960x800 JPG
public void setWallpaper() {
WallpaperManager myWallpaperManager = WallpaperManager.getInstance(getActivity().getApplicationContext());
Bitmap bmp = BitmapFactory.decodeStream(getResources().openRawResource(R.raw.img6));
try {
myWallpaperManager.setBitmap(bmp);
Toast.makeText(getActivity().getApplicationContext(), "Set wallpaper successfully!", Toast.LENGTH_SHORT).show();
} catch (IOException e) {
e.printStackTrace();
}
}
Edit: I checked this wallpaper on another S4 but it is rooted and with Cyanogenmod Marshmallow. Quality is perfect like on Note 4 and S2. That S4 with bad quality have android 5.0.1