Hi,
I want to show an image file in an ImageView widget.
Since
iv.setImageURI(Uri.fromFile(new File("filepath...")));
does not work (getting INFO/System.out(1624): resolveUri failed on bad
bitmap uri: file:///sdcard/test/photos/photo13.jpg) I tried the
following:
BitmapFactory.Options opts = new BitmapFactory.Options();
opts.inSampleSize = 4;
if(mBitmap != null) {
imgPhoto.setImageBitmap(mBitmap);
}
But the samplesize is static. So small pictures (like icons and so on)
are blurry. If I don't set a samplesize, the picture might get too big
(for example photos).
So how to do that?
--
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