android-memory

What is the maximum amount of RAM an app can use?

对着背影说爱祢 提交于 2019-11-26 14:02:45
I am quite curious about this question concerning the memory management of the Android operating system so I hope for a quite detailed answer on that topic. What I would like to know: What is the maximum amount of memory (in megabytes / as percentage of the total RAM) that an Android application (that is not a system app) can use? Are there any differences between Android versions ? Are there any differences concerning the manufacturer of the device? And most importantly: What is considered / what does it depend on when it comes to the system determining how much RAM an app can use at runtime

What is the maximum amount of RAM an app can use?

强颜欢笑 提交于 2019-11-26 05:55:11
问题 I am quite curious about this question concerning the memory management of the Android operating system so I hope for a quite detailed answer on that topic. What I would like to know: What is the maximum amount of memory (in megabytes / as percentage of the total RAM) that an Android application (that is not a system app) can use? Are there any differences between Android versions ? Are there any differences concerning the manufacturer of the device? And most importantly: What is considered /

Bitmap recycle with largeHeap enabled

倾然丶 夕夏残阳落幕 提交于 2019-11-26 02:57:49
问题 Before enabling largeHeap option, I was handling large bitmaps and it\'s consume almost the entire memory available for the application, and recycling it over navigation and loading new ones works round on almost the full heap available. However when some operations needs a bit more memory the application crashes. So I enabled largeHeap=true to have a bit more memory. But doing this has a unexpected behavior, it\'s looks like that recycle() method of bitmaps do not work most of times, and the