The JobScheduler API was introduced in Android 5.0 Lollipop. It lets you send requests for processing jobs in a service, but lets the application framework decide exactly when the job will be executed.
- [Instructor] The JobScheduler API was introduced…in Android 5.0, Lollipop.…It lets you send requests for processing jobs in a service,…but it lets the application framework decide exactly…when the job will be executed.…There are many reasons to use the JobScheduler API,…specifically, in Oreo, Android 8, where there were new…constraints on what you can do in background services.…The job schedule lets you avoid creating long-running…services, and instead lets the application framework…choose good times to do background tasks.…
The first step is to create a service.…In this application space package, I'll create a new…package, that I'll name services, and then, within…that new package, I'll create a new Java class.…I'll name this service MyJobService,…and then I'll set the superclass as JobService…from the android.app.job package.…I'll create that service class, and I'll see that there's…a warning indicator on the class declaration.…I'll use an intention action and choose implement methods,…and I'll select both suggested methods on startJob…
Skill Level Intermediate
Q: Why can't I earn a Certificate of Completion for this course?
A: We publish a new tutorial or tutorials for this course on a regular basis. We are unable to offer a Certificate of Completion because it is an ever-evolving course that is not designed to be completed. Check back often for new movies.
Android App Development: Data Persistence Librarieswith Annyce Davis4h 52m Intermediate
Building Android Apps with Cloud Serviceswith Albert Lo2h 37m Intermediate
1. Android Development Tips Weekly
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.