I have a service module that get four banners on the Internet and displays them in an activity.
Many things can happen:
For example, the device is not still connected to the Internet, the connection is too slow, server error, activity is paused...
So the service is in background trying to download.
What is the best practice? the service module wait for next attempt (30 seconds) or try continuously, or just cancel?
Is there any reason to wait for the next attempt? This can change the battery consumption?
Thank you.
Many things can happen:
For example, the device is not still connected to the Internet, the connection is too slow, server error, activity is paused...
So the service is in background trying to download.
What is the best practice? the service module wait for next attempt (30 seconds) or try continuously, or just cancel?
Is there any reason to wait for the next attempt? This can change the battery consumption?
Thank you.