Hi all!
I'm trying to understand how service works properly. As i understood, resource should be load in started service. But if have to need a list that is used in another service and i don't want to clean? Need i to store it in a file/db/other stuff?
I put this flow as example.
I start the Starter service and start A service after 5 seconds.
I close my app and swipe it from recent list, so when A service will run, also starter service will run for second times.
I open my app, so starter service will run for third times.
I lost my list, because it was reinizialized 3 times..
If i initialize the list in Service_Create, nothing will change, because service will create every time i re open my app
How avoid this?
I attach a simple project. Thanks
I'm trying to understand how service works properly. As i understood, resource should be load in started service. But if have to need a list that is used in another service and i don't want to clean? Need i to store it in a file/db/other stuff?
I put this flow as example.
I start the Starter service and start A service after 5 seconds.
I close my app and swipe it from recent list, so when A service will run, also starter service will run for second times.
I open my app, so starter service will run for third times.
I lost my list, because it was reinizialized 3 times..
If i initialize the list in Service_Create, nothing will change, because service will create every time i re open my app
How avoid this?
I attach a simple project. Thanks