I compiled a wallpaper app from a source code, inserted some 1230x720 pictures, But when I applied the walls using that app, they always get cropped automatically. What should I change in the code to apply at the original size and resolution?
Here's an example: 1.Original Picture: http://i.imgur.com/VrCHcXL.png
2.After applying as an wallpaper using my app: http://i.imgur.com/Mect1uo.png
Source code: blog.blundell-apps.com/set-phone-wallpaper/
Thanks
EDIT: this code in HeavyLifter.java seems to be the culprit, how do I change it to "Fit the screen resolution"?
private Bitmap getImage(int resourceId) {
Bitmap bitmap = BitmapFactory.decodeResource(context.getResources(), resourceId, null);
Bitmap scaledBitmap = Bitmap.createScaledBitmap(bitmap, manager.getDesiredMinimumWidth(), manager.getDesiredMinimumHeight(), true);
bitmap.recycle();
bitmap = null;
return scaledBitmap;
}