Skip to content
Research reports

developer.android.com

Task scheduling

Excerpt

When you want to execute tasks that will continue to run even if the app leaves the visible state, we recommend using the Jetpack library WorkManager. WorkManager features a robust scheduling mechanism that lets tasks persist across app restarts and device reboots.

Types of work

WorkManager handles three types of work:

Immediate: Tasks that must begin immediately and complete soon. May be expedited.

Long Running: Tasks which might run for longer, potentially longer than 10 minutes.

Deferrable: Scheduled tasks that start at a later time and can run periodically.

Figure 1 outlines how the different types of tasks relate to one another.

Figure 1: Types of work.

Similarly, the following table outlines the various types of work.

Typ…

The opening of the report, shown for reference. The full report, with its figures and indicators, is published by developer.android.com on developer.android.com.

Report pages show the excerpt, publisher and topics, then link out. CyberSIXT does not republish report bodies.

Updated AboutDevelopersSign in