A arfprogramas Member Licensed User Longtime User Sep 24, 2019 #1 Hello I have two questions about the same subject.. 1) I know the Starter service is not killed by OS after B4A 9.0+ when we have a foreground service, but what happens with code modules variables? 2) e.g.: when the user resumes an activity that depends of SQL declaration in Starter service, if that was already initialized, it's seems to work fine. But, is that true to code modules declarations? In module: B4X: Expand Collapse Copy Public VarXPTO As Map Is 'VarXPTO' always accessible with the original values? Even if the app resumes after a while of inactivite? I'm asking because i'm recivieng a lot of firebase crashes lately and I'm trying to solve the problems... Thanks in advance. Last edited: Sep 24, 2019
Hello I have two questions about the same subject.. 1) I know the Starter service is not killed by OS after B4A 9.0+ when we have a foreground service, but what happens with code modules variables? 2) e.g.: when the user resumes an activity that depends of SQL declaration in Starter service, if that was already initialized, it's seems to work fine. But, is that true to code modules declarations? In module: B4X: Expand Collapse Copy Public VarXPTO As Map Is 'VarXPTO' always accessible with the original values? Even if the app resumes after a while of inactivite? I'm asking because i'm recivieng a lot of firebase crashes lately and I'm trying to solve the problems... Thanks in advance.
Erel B4X founder Staff member Licensed User Longtime User Sep 24, 2019 #2 1. Process global variables will be kept until the process is killed. 2. Yes. As a general rule it is best to put all public process globals Process_Globals of the starter service and initialize them in Service_Create. Upvote 0
1. Process global variables will be kept until the process is killed. 2. Yes. As a general rule it is best to put all public process globals Process_Globals of the starter service and initialize them in Service_Create.
A arfprogramas Member Licensed User Longtime User Sep 24, 2019 #3 Thank you Erel. I'll try to solve the problems with those informations. Upvote 0