Are android-priority-job-queue and job scheduler two different things?

I just want to touch on this problem: is android-priority-job-queue: https://github.com/yigit/android-priority-jobqueue

and Task Scheduler for Android: http://developer.android.com/reference/android/app/job/JobScheduler.html

two different things? or is this priority jobqueue android a huge resemblance?

They have similar characteristics, but in the end, my conclusion is that they are two different things. For example, I can schedule a task that will be executed when the network works with the task scheduler with uncertainty, but in the task queue I need to configure it.

Am I missing something ??? Thank you very much in advance.

+5
source share
1 answer

These are two different things.

The Queue Job Priority Job library is designed to solve a problem when you have a lot of things that you want to run in the background and want to be manageable so that they don't overload your application. It is expected that you want these bits of work to run as soon as possible, and you want to show the results in action in your application (but not necessarily).

JobScheduler is used when you have work to be planned and run in the future, possibly sometime after your application process is killed. It is sensitive to device circumstances such as deep sleep and network connectivity, so work can be scheduled as soon as possible without draining the battery.

+10
source

Source: https://habr.com/ru/post/1243250/


All Articles