Will the behaviour be the same as with Service and IntentService (apart from the JobScheduler may not start the jobs immediately)?推荐答案 JobIntentService 本质上是对 IntentService 的替代,以起到很好的作用"的方式提供了类似的语义.Android O的新后台执行限制.它是作为O +上的计划作业实现的,但是已经被抽象掉了-您的应用程序不必关心它是一份工作.JobIntentService is essentially a replacement for IntentService, offering similar semantics in a way that "plays nice" with Android O's new background execution restrictions. It is implemented as a scheduled job on O+, but that's abstracted away -- your app doesn't need to care that it's a job.绝对不要直接通过 JobIntentService 支持类直接使用您希望使用的作业. JobIntentService 使用作业计划程序中的 enqueue()系统,并且您无法混合和匹配 enqueue()和 schedule()来完成相同的工作.Never schedule() a job directly that you expect to use via the JobIntentService support class. JobIntentService uses the enqueue() system in the job scheduler, and you cannot mix and match enqueue() and schedule() for the same job. 这篇关于JobIntentService与JobService有何关系?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 06-11 10:59