Excluding the fact that JobScheduler
only supports API > 21 - are JobSchedulers
designed to fully replace SyncAdapters
? Or does SyncAdapter
contain any functionality lacking by JobScheduler
?
My use case is syncing an RSS feed every couple of hours. This is doable with a JobScheduler - right?
https://developer.android.com/topic/performance/scheduling.html
I would say
JobScheduler
is not a direct substitution forSyncAdapter
, which has a much more specialized purpose (transferring data between the device and a server).JobScheduler
, on the other hand, serves to schedule tasks to be executed at some point of time in future - just likeAlarmManager
- but with a broader potential.By the way, there's an attempt to backport
JobScheduler
.