Hi all,
In my app, there are 1 main activity and 1 child activity. I declare a process variable, let say "check as boolean" The child activity is called by the code:
Base on the value of "check", child_activity will display a blank textbox, if "check" = true or display a text if "check" = false. When I first run the app, "check" is assigned to false. My child activity opens and shows the text as normal. Then I press Home button and it for a while then open my app again. What I saw is my child activity with a blank textbox.
From my understanding, as the app when I re-open, shows my child_activity, it means the app is still alive, not being killed by the OS. But then if my app is alive, how come my process variable lost its value ?
In my app, there are 1 main activity and 1 child activity. I declare a process variable, let say "check as boolean" The child activity is called by the code:
B4X:
Sub Btn_Click
if a > 10 then check = False
else check = true
StartActivity(Child_Activity)
End Sub
Base on the value of "check", child_activity will display a blank textbox, if "check" = true or display a text if "check" = false. When I first run the app, "check" is assigned to false. My child activity opens and shows the text as normal. Then I press Home button and it for a while then open my app again. What I saw is my child activity with a blank textbox.
From my understanding, as the app when I re-open, shows my child_activity, it means the app is still alive, not being killed by the OS. But then if my app is alive, how come my process variable lost its value ?