how to reduce memory occupied by bitmap in android
how to reduce memory occupied by bi开发者_Python百科tmap in android. will options.insamplesize of bitmap reduce the memory consumed by bitmap
Yes, opt.inSampleSize
with proper scale will reduce memory consumption if used in BitmapFactory.
Also, you should set opt.inPurgeable = true
to allow bitmaps to be purged.
And finally, you should call bmp.recycle()
when you don't need the bitmap anymore.
Use Util class that Contain the Virtual SD card Memory to Store the Image. . .
精彩评论