I'm creating an app that downloads some stuff when it starts and show a list to the user, but i don't want it re-downloading the list every time the app opens, or whenever the user changes to a different activity and comes back.
To solve this, i'm using static variables. I read that their values still there until the program is closed or they are not in use and the garbage collector does his work.
So, my question is:
Is there a big difference between these two ways? Or am i doing it wrong? Should i use the Saved Instance State provided by Android to save these variables or static will do the job?
Note that I can not save this date for a time longer then a day, so it's not an option to save it to a database.
Thanks.