Now my app has 2000 downloads and 180 daily users. I don't believe they all use Samsung devices only. I am confused - I don't have any samsung devices, please if you have one - could you please tell me how much RAM they normally allocate for android application? My app normally consumes 20-22mb +2mb per UI reload as memory leaks (but users normally don't do this more than 2-3 times so...) I have added "LargeHeap" in last version (not in statistics yet).
Is this 46 OutOfMemory errors a lot for 14500 sessions? Or it is okay for android?
You are asking the wrong question. You should be trying to figure out how to make your application less memory-hungry, not trying to find workarounds for specific vendors/OEMs.
For some guidance, this article is particularly helpful: Managing Your App's Memory . Since you mentioned that you are attempting to use the largeHeap
attribute in your manifest, you might want to read the following snippet from the article:
In very special situations, you can request a larger heap size by setting the
largeHeap
attribute to"true"
in the manifest<application>
tag. If you do so, you can callgetLargeMemoryClass()
to get an estimate of the large heap size.However, the ability to request a large heap is intended only for a small set of apps that can justify the need to consume more RAM (such as a large photo editing app). Never request a large heap simply because you've run out of memory and you need a quick fix .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.