Android Question Foreground service and Starter service

islander

Member
Licensed User
I have a service called Downloader that uses variables stored in Starter's Process_Global and initialized in Starter.

If my Downloader service is made foreground, does the Starter service needs to be foreground too, so android does not kill the Starter service and does not unload variables stored in Starter's Process_Global which need to be used by the foreground service Downloader?
 

DonManfred

Expert
Licensed User
Longtime User
You should not set foreground to the starter
 
Upvote 0

lemonisdead

Well-Known Member
Licensed User
Longtime User
so android does not kill the Starter service and does not unload variables stored in Starter's Process_Global which need to be used by the foreground service Downloader?
the process globals variables should live until the last module is killed. So declared once you should be able to use them
 
Upvote 0
Top