Thanks to Schermvlieger for asking this question on anddev.org,
I'm just copying his question to SO as nobody replied on the other site and I'm also facing the same problem.
I was wondering what would be the optimal use of BitmapFactory.Options.inSampleSize
with regards to speed of displaying the image.
The documentation mentions using values that are a power of 2, so I am working with 2, 4, 8, 16 etc.
The things I am wondering about are:
OutOfMemoryError
?BitmapFactory
for large files, setImageURI()
for smaller ones) I am using an ImageSwitcher
by the way.Bitmap
, BitmapFactory.Options
and inTempStorage
in the beginning of the application or creating them only on the fly, when needed?