This might by a silly question, but to me it is about understanding Android Life cycle correctly – still learning.
Is it possible to have a List-object in Process_Globals and assume it is not killed by Android? Or have I missed some documentation somewhere (I have searched for it, before I wrote this).
In the enclosed application, I have made an example that shows my point. I have two activities, one main which contains a string and a list variable in Process_Globals, and another that refers to the two variables. If I launch the application and press the button on the screen, I can display both string and list on the view. However, if I launch the application, and then switch to a task manager and kill the process, return to my application and press the button, only the string is present. My list-object is not initializing anymore.
Is it possible to have a List-object in Process_Globals and assume it is not killed by Android? Or have I missed some documentation somewhere (I have searched for it, before I wrote this).
In the enclosed application, I have made an example that shows my point. I have two activities, one main which contains a string and a list variable in Process_Globals, and another that refers to the two variables. If I launch the application and press the button on the screen, I can display both string and list on the view. However, if I launch the application, and then switch to a task manager and kill the process, return to my application and press the button, only the string is present. My list-object is not initializing anymore.