Now that you know Android in order to avoid oom, in the picture processing, you can use the Open source framework Universal-iamge-loader. This article is just a brief introduction to the meanings of some of the methods under which Displayimageoptions, as follows:
Set the picture that the picture displays during the download
Showstubimage (R.drawable.ic_launcher)
Sets the picture to be displayed when the image URI is empty or wrong
Showimageforemptyuri (R.drawable.ic_empty)
/Set picture to display when error occurred during image loading/decoding
Showimageonfail (R.drawable.ic_error)
Set whether the picture is reset before downloading, reset
Resetviewbeforeloading ()
Sets whether the downloaded picture is slow to exist in memory
Cacheinmemory ()
Sets whether the downloaded picture is slow to exist on the SD card
Cacheondisc ()
Set the decoding type of a picture
Bitmapconfig (Bitmap.Config.RGB_565)
/ /Set the decoding configuration of the picture
Decodingoptions (android.graphics.BitmapFactory.Options decodingoptions)
Set the delay before the picture is downloaded
delaybeforeloading (int delayinmillis)
Set additional content to Imagedownloader
Extrafordownloader (Object extra)
Set up bitmap before adding a picture to the cache
Preprocessor (Bitmapprocessor preprocessor)
Set the picture before display, this picture remains in the cache after display
Postprocessor (Bitmapprocessor postprocessor)
Set how images are displayed in an encoded manner
Imagescaletype (Imagescaletype imagescaletype)
As for the specific use, you can search the online posts by yourself.
Reprint Please specify source: http://blog.csdn.net/android_jiangjun/article/details/39231439