开发者

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. . .

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜