seems like a number of my users experience crashes when resuming the back-grounded app. I'm not sure how to repeat the crash but it seems to be very much related to the state of the operating system.
What happens is that some of my arrays bound to static memory go null. But there is no possible way for that to occur in any state in my app. The only way it could occur if it it skipped my first activity (which initializes them) and they jump to a later activity.
When apps come back into the forground, could the OS clear out memory if it decides the app is no longer worthy of taking up resources and it gets paged out, then dump you to the last activity you left off on? In order words, could my global variables be destroyed or compromised and then my app tries to load the last activity the user left off on (not necessarily the first activity) therefore creating a state that is will crash my app?
What happens is that some of my arrays bound to static memory go null. But there is no possible way for that to occur in any state in my app. The only way it could occur if it it skipped my first activity (which initializes them) and they jump to a later activity.
When apps come back into the forground, could the OS clear out memory if it decides the app is no longer worthy of taking up resources and it gets paged out, then dump you to the last activity you left off on? In order words, could my global variables be destroyed or compromised and then my app tries to load the last activity the user left off on (not necessarily the first activity) therefore creating a state that is will crash my app?