0

I would like to get a size in bytes that states how much memory can I allocate at the moment. Like when I get an OutOfMemoryError while trying to allocate a bitmap, it says "allocation size exceeds VM Budget" - so I would like to know what is the maximum amount of bytes I can allocate at the moment, so I can free resources accordingly in order to make way for new allocations.
How do I go about getting this number? Thanks.

trincot
  • 263,463
  • 30
  • 215
  • 251
saarraz1
  • 2,997
  • 6
  • 26
  • 44

0 Answers0