I have an android application (minSdkVersion=7), which should send/receive some data to the server once per day. What is the best way to organize such synchronization?
In my previous application I used background Service
which checks every X mins if 1 day is passed. But I don't like this approach since the service is always running. Is there any other way to achieve the same?
What is synchronization should happen not once per day, but once per hour? Does it change the approach?
One more item to be considered - I perform synchronization only if wi-fi connection is available. If it is not, I shouldn't wait for 1 more day. The app should try to perform another synchronization let's say in 15 minutes.