开发者

Memory error while using bitmap image in android

开发者 https://www.devze.com 2023-03-08 04:10 出处:网络
I am using a large bitmap image for my application. While using the application, I get an out-of-memory error. My question is: how do I reduce the image size without reducing the resolution in android

I am using a large bitmap image for my application. While using the application, I get an out-of-memory error. My question is: how do I reduce the image size without reducing the resolution in android? Is there any other way to avoi开发者_JAVA百科d an out-of-memory error?


you can use softreference for your bitmap here is link that might be helpful for you

Out of memory exception due to large bitmap size

0

精彩评论

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