0

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 avoid an out-of-memory error?

mohan
  • 13,035
  • 29
  • 108
  • 178

1 Answers1

1

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

Community
  • 1
  • 1
Sujit
  • 10,512
  • 9
  • 40
  • 45