I want to add in my manifest android:largeheap="true"
based on some devices. Mostly devices running probably os 5.1 and below.Because alot of my clients are using samsung s3 , chinese , indian , pakistani phones.And I am getting lots of crashes in my firebase console. However this issue is not faced on top notch devices like google pixel samsung s8 etc.
How can I detect which devices i run largeheap, and how i run it on those devices only? I do not want to run it on devices i dont need to.
Asked
Active
Viewed 109 times
0

user3278732
- 1,694
- 10
- 31
- 67
-
Possible duplicate of [Enable android:largeHeap in Android 4, and disable it in Android 2.3](https://stackoverflow.com/questions/14918028/enable-androidlargeheap-in-android-4-and-disable-it-in-android-2-3) – Gino Mempin Aug 15 '17 at 08:14
1 Answers
0
Well, you can't set this flag depending on the device. That's the true. But you can set it depending on OS version, screen size and etc. Check this answer to see how it can be done.

Anton Potapov
- 1,265
- 8
- 11