Android Question Start a service before Main Activity_Resume?

klarsys

Active Member
Licensed User
Longtime User
I want to access a service's global variable in Main Activity_Resume().

In the service, I initialize the variable in Service_Start().

No matter if I start my service from Starter service or Main module's Create() or Start() functions, i see that my service starts only after Main Activity_Resume().

How can I make sure that my service is started *before* Main activity starts, so that the variable is initialized and that I'm able to call service's functions from my Main activity?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…