DEPRECATED
This library is not maintained anymore and there will be no further releases except for very critical bug fixes. Use WorkManager instead of this library.
Android-Job
A utility library for Android to run jobs delayed in the background. Depending on the Android version either the JobScheduler, GcmNetworkManager or AlarmManager is getting used. You can find out in this blog post or in these slides why you should prefer this library than each separate API. All features from Android Oreo are backward compatible back to Ice Cream Sandwich.
Target SDK 31
When targeting API 31 and you still use this library (you really should not and migrate to WorkManager instead), then don't forget to add the exact alarm permission when using exact jobs.
Download
Download the latest version or grab via Gradle:
dependencies {
implementation 'com.evernote:android-job:1.4.3'
}
Starting with version 1.3.0 the library will use the WorkManager internally, please read the documentation and opt-in.
If you didn't turn off the manifest merger from the Gradle build tools, then no further step is required to setup the library. Otherwise you manually need to add the permissions and services like in this AndroidManifest.
You can read the JavaDoc here.
Usage