JobScheduler is an api interface used to schedule various types of tasks according to the application process.
Public abstract class JobService
Extended service
JobService inherits from Service, which is a special service for handling asynchronous requests scheduled in JobScheduler.
After the periodic period is set to 5 seconds-> running, you will find that the JobService has not been started. Why?
Find the answer in the source code: Android/FrameWorks/base/core/Java/Android/app/job/jobinfo.java.
Summarize a few points:
Sub-behavior: We provide the dumpsys tool:
Adb shell dump system job scheduler
Inheriting JobService to Realize His Two Interfaces
setBackoffCriteria
Public [work] information. builder]setBackoffCriteria(long initialBackoffMillis,int backoffPolicy)
ADB shell dump sys power com . fantasy . Android . demo | grep Wake
Reference article:
blogs.com/chase 1/p/722 19 16.html