1

I am working on android project. My apk size is 50mb because my project contains lot of images and I kept all my images in drawable folder. But now the problem is sometimes when i click on the button to display the image it is displaying error message saying that outofmemory error. Please anybody suggest me how to solve this issue.

Thanks in advance

hemanth kumar
  • 3,068
  • 10
  • 41
  • 64

2 Answers2

2

Android documentation provide a solution.
The idea is that you should scale down the images before loading them in memory.

Andy Res
  • 15,963
  • 5
  • 60
  • 96
0

i am not Sure but about your exact Problem but Here is the link in which you can get your solution

Out of Memory Issues

Community
  • 1
  • 1
Bhavesh Patadiya
  • 25,740
  • 15
  • 81
  • 107