Android Question SetApplicationAttribute(android:largeHeap, "true")

wonder

Expert
Licensed User
Longtime User
I was reading @Informatix How To Make Games tutorial and I came across this line:


Is there any disadvantage to always use this line in every single app we create??
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
If your app doesn't need it then there is no reason to ask the OS for more memory. A process that takes more memory will be killed quicker when it is in the background.

Another possible drawback of this attribute is that it can hide the real issue which is a memory leak.
 
Upvote 0

deantangNYP

Active Member
Licensed User
Longtime User
SetApplicationAttribute(android:largeHeap, "true")

Can i just confirm, this line is to be added into "AndroidManifest.xml"?
Please advise. Thanks.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…