Android Question After loading the layouts and images in app I get Downsampling of image in logs and app crashes!

trueboss323

Active Member
Licensed User
Longtime User
I have an issue similar to this thread:

https://www.b4x.com/android/forum/t...pling-of-image-in-logs-and-app-crashes.57851/

I am loading a ton of images which is causing the app to crash. But the only thing is, they are not being displayed at once. When I need an image, I use the Image1.Visible = True method. When I set it to false, I want to be able to dump that memory, meaning I will not need it anymore, therefore freeing up memory.
 

KMatle

Expert
Licensed User
Longtime User
I am loading a ton of images which is causing the app to crash.

= Reason


Solution:

1. Only load what is needed
2. Load other images later when needed
3. "tons of images" or other data are stored on the sd card (file) or a db - not in the memory
 
Upvote 0
Top