I met the same issue.
Here the workaround I found :
BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = 8;
Bitmap bitmap = BitmapFactory.decodeFile(filename, options);
BitmapDrawable drawable = new BitmapDrawable(bitmap);
imageView.setImageDrawable(drawable);
Hope this helps,
Pierre
On Jun 1, 3:36 pm, Android Users <[email protected]> wrote:
> Hi all,
> Can i resize an image to a lower resolution as i am getting an
> OutOfMemoryException when trying to display image with 2048x1536 resolution
> or more?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---