BTW, this is also the case in B4A. A common mistake in B4A is to have a ***public*** global variable in the Main module that is initialized in Activity_Create when FirstTime is true.
Don't assume that the app will start from the main activity. This is exactly why the Starter service was created.
This is not an issue in B4J or B4i as the program always starts from the main module.
Hi Erel
Thanks for the quick response (its nice to know the B4i Main module will always run first) - but the question relates to B4i, can I rephrase the question.
For B4i, is it safe to keep global variables in ANY code module (within ITS Process_Globals sub).