ayier1 / worktime

Automatically exported from code.google.com/p/worktime
0 stars 0 forks source link

Automated Synchronization #181

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Enable the automated synchronization which will schedule a synchronization 
every x hours depending on the configuration in the preferences. By default 
this be set to each 12 hours.
There should also be two more configuration options (preferences) for:
 # If a notification should be shown when synchronization is successful
 # If a notification should be shown when synchronization fails (for any reason)

Original issue reported on code.google.com by dirkvran...@gmail.com on 14 Jan 2013 at 1:43

GoogleCodeExporter commented 8 years ago
Implemented a Service (IntentService) to do the syncing and added an alarm 
manager that removes all the alarms before scheduling a repeating alarm. The 
repeating alarm is always scheduled on reboot of the device, on reinstall of 
the application, on login and on register. The scheduled sync-alarms are always 
removed on logout!

Original comment by dirkvran...@gmail.com on 16 Jan 2013 at 1:48