Hi everyone,
I recently got a new Android phone for testing my apps. When navigating through one of my apps, I got to a screen that displays a bunch of product images in a vertical scrollview. On my older Android phones (Version 4.1.2), all the images load no problem. On the new phone (Samsung S4), this error shows up in the console:
[ERROR] : art: Throwing OutOfMemoryError "Failed to allocate a 1714956 byte allocation with 581751 free bytes and 568KB until OOM"
It throws that error a bunch of times, I'm assuming one for each image. This happens on most of the screens that have this vertical list of images. The only screens it doesn't happen on are the ones with a short list of images (7-8 images instead of 10+).
After looking around on google, it seems this is a common problem on Android 5.0+, but I didn't see any solutions on how to fix it. Has anyone else encountered this problem, and if so, how'd you fix it? Is there a way you can load only the images that are on the screen plus a few more that are just out of view? If you need to see my code, let me know.
I should also mention this is a Titanium Classic app.
Thanks in advance.