I have a memory issue when saving images on the background then transferring to gridview full of pictures.
So how my application works:
Activity one "Shows a bunch of images" (Painless loading is enabled in here) Activity two "Save images in the sd card"
The problem I have lies with activity two as it goes to activity one. When items gets saved in the background which shows a lack of images.
What I have tried:
I have tried to call System.gc() before transferring to activity one.
I have tried to create a method and change the variables to null.(Force a garbage collection)
My attempts were unsuccessful. So if someone could give me a better idea on what would be my options for optimizing I would be grateful.