process_global is not a module. It is a sub in a Activity or a Service for example.
Hi DonManfred, thanks for your answer.
I've missed a few words when I wrote the question; here I go again:
So, if my app has 3 services, the module's
variables declared at process_global are kept as any of the services is alive, no matter which uses the module first?
And also, I add the following:
oSQL must be declared as "Public", or an exception will rise sometimes when using it from other module (activity or service) than the one that instatiate it before.
Thank Harris for your answer, too.
I understand no service is guaranteed to be kept alive forever by android. So, as I have 3 services, maybe the chance that at least one of them is kept alive would suffice to keep some module's object instatiated. What do you think?
Regards!