michael
michael

Reputation: 110600

How does android define max heap size for an application?

Can you please tell me how android defines the max heap size for an application?
I am getting this:

W/dalvikvm( 2306): 58503184 byte allocation exceeds the 50331648 byte maximum heap size

I would like to know how/where android defines the max heap size?

Upvotes: 2

Views: 668

Answers (1)

Alexander Lucas
Alexander Lucas

Reputation: 22371

It varies from device to device.

You can get the approximate per-application memory class of a device by running getMemoryClass()

Upvotes: 3

Related Questions