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
 

DonManfred

Expert
Licensed User
Longtime User
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
Top