asales Expert Licensed User Longtime User May 14, 2019 #1 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.
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 May 15, 2019 #2 Hi, this line allocates more memory on the system stack, which is always quite beneficial. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User May 15, 2019 #3 It is not possible to add based on the version. Upvote 0
asales Expert Licensed User Longtime User May 15, 2019 #4 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
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?
Jorge M A Well-Known Member Licensed User May 15, 2019 #5 Erel said: A process that takes more memory will be killed quicker when it is in the background. Click to expand... https://www.b4x.com/android/forum/t...ute-android-largeheap-true.46121/#post-284586 Upvote 0
Erel said: A process that takes more memory will be killed quicker when it is in the background. Click to expand... https://www.b4x.com/android/forum/t...ute-android-largeheap-true.46121/#post-284586