Hi
I developed an app that has a service running aturomatically (StarServiceAt) in background at specified intervals. The service can also be started manually (by pressing a button) and it takes about 15 seconds to complete the whole computation.
Everything is going fine but i must foresee all possible scenarios.
My question is:
If the service is already started and it is in the middle of its computations, what happens if i start again manually the service?
In this case the routines in the previous service-runtime are interrupted or service continue to run until the end?
If in the service i write files with discrete amount of data, starting manually the service in the middle of this operations can break up the saved data?
I developed an app that has a service running aturomatically (StarServiceAt) in background at specified intervals. The service can also be started manually (by pressing a button) and it takes about 15 seconds to complete the whole computation.
Everything is going fine but i must foresee all possible scenarios.
My question is:
If the service is already started and it is in the middle of its computations, what happens if i start again manually the service?
In this case the routines in the previous service-runtime are interrupted or service continue to run until the end?
If in the service i write files with discrete amount of data, starting manually the service in the middle of this operations can break up the saved data?