-4

i need to open four bitmaps with higher size than 1024x1024, at the same moment.

Now i only can open four bitmaps if the size doesn't exceed of 1024 in one of the sides.

How can i solve this?

It's a must for mi app.

NullPointerException
  • 36,107
  • 79
  • 222
  • 382
  • 1
    You are probably running out of memory as just a guess since you did not paste any code or logs (hint) – Graham Smith Mar 08 '12 at 11:50
  • What possible use could this have? I doubt there will be enough spare memory in most devices to facilitate this. Let alone screen size available. – Thomas Clayson Mar 08 '12 at 11:51
  • What are you doing with the bitmaps? – Jim Rhodes Mar 08 '12 at 11:52
  • 3
    Very bad, unclear question. After 250 questions you should know better how to ask here. Anyway, I guess this is the memory issue again. Did you read the answers and the duplicate of your [older question](http://stackoverflow.com/questions/9484114/how-to-work-with-a-lot-of-bitmaps-and-avoid-the-error-bitmap-size-exceeds-vm-b)? This answers it pretty well. Otherwise please elaborate a bit what the problem here is. –  Mar 08 '12 at 11:52

2 Answers2

0

the solution is to reduce the size of the bitmaps and to recycle all the bitmaps used in the activity.

NullPointerException
  • 36,107
  • 79
  • 222
  • 382
0

Try to increase the size of Max VM application heap size in the Virtual device settings from 24 to 32.

Karthik
  • 4,943
  • 19
  • 53
  • 86