Android Question Process variables destroyed

iCAB

Well-Known Member
Licensed User
Longtime User
Hi All
After the app is moved to the background,it seems that I am facing this issue now a lot more than before. Or at least I am noticing the issue a lot more.
Many of the global variables are destroyed, which is causing major app crashes.
Is there a way around this without having to store all variables to a file?

Thanks
iCAB
 

iCAB

Well-Known Member
Licensed User
Longtime User
Storing variables on file is a very good idea, instead
What is the proper way of handling this?
Do we have to store all global variables in all modules in files?, it doesn't make sense at all
 
Upvote 0

iCAB

Well-Known Member
Licensed User
Longtime User
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
Do you talk about Process_Globals or Globals variables ?

In my app Process_Globals are present almost in all activities and Services. The app starts/stops activities and services many times.
Never noticed that variables are changed due to these acrtions.
 
Upvote 0

coslad

Well-Known Member
Licensed User
Longtime User
Variable is a variable and it doesn't have sense to store a variable into a file .

Why don't you use code module to define global variable ?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…