I have an Android app that start a service when the activity starts.
The service downloads a lot of data during the startup routine.
The service is configured as START_STICKY
, so it restarts automatically.
Problem is that during tests, I found out that the service is restarted a lot of times, so it continually downloads the same data over and over.
I'm asking if there is a "best pratices" for this case, or if there is a way to prevent continue restarts.
Thank you.