Android Question [Solved] Set largeHeap in manifest only to Android <= 19

asales

Expert
Licensed User
Longtime User
I see in the Firebase Crashlytics the "Fatal Exception: java.lang.OutOfMemoryError" in Android 4.2, 4.3 and 4.4.4.

This line in manifest can be solve this problem?
B4X:
SetApplicationAttribute(android:largeHeap, "true")

If yes, is possible to set this line in manifest only to Android <= 19 (4.4)? How?

Thanks in advance for any tip.
 

kisoft

Well-Known Member
Licensed User
Longtime User
Hi,
this line allocates more memory on the system stack, which is always quite beneficial.
 
Upvote 0

asales

Expert
Licensed User
Longtime User
If I put this line in the manifest, it will increase the memory only if necessary (to avoid the out of memory error in Android 4.2..4.4) and not will affect the app in Android > 19?
 
Upvote 0
Top