> Documentation index: https://developer.android.com/courses/llms.txt

# Schedule tasks with WorkManager


Learn when and how to use WorkManager, an API that handles background work that needs to run regardless of whether the application process is still running.  


Go back

## Introduction to WorkManager

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Video *Optional*

Welcome to Unit 7! This unit expands on what you have learned in this course by using the WorkManager library from Android Jetpack.

<button class="playlist-skip gc-analytics-event" data-category="devsite-playlist: skip button"> Skip </button>

## Implementing WorkManager

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Video *Optional*

In this video, you get an overview and walkthrough of the code you implement in the WorkManager codelabs.

<button class="playlist-skip gc-analytics-event" data-category="devsite-playlist: skip button"> Skip </button>

## Background work with WorkManager

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Codelab

The WorkManager API for Android makes background work simple. WorkManager can create tasks that are queryable, reusable, and chainable. WorkManager is the recommended task scheduler on Android. This codelab teaches you the ins and outs of WorkManager: creating workers, using work requests, and chaining workers according to your app needs.

[Take codelab](https://developer.android.com/codelabs/basic-android-kotlin-compose-workmanager)

## Advanced WorkManager and Testing

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Codelab

In this codelab, you continue to learn more on WorkManager, such as the creation of unique work sequences and more complex chained jobs with constraints. The verification of background work done with WorkManager can be tricky. This codelab also goes over a few different ways to verify the background work that WorkManager executes.

[Take codelab](https://developer.android.com/codelabs/basic-android-kotlin-compose-verify-background-work)

## Practice: Build Water Me app

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Codelab

Apply the concepts from this pathway to the Water Me app to ensure all the tasks perform in the background with WorkManager.

[Take codelab](https://developer.android.com/codelabs/basic-android-kotlin-compose-practice-water-me-app)

## What's next?

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Video *Optional*

Congratulations on finishing Unit 7! In this unit, you learned how to use Android Jetpack's WorkManager API to schedule necessary background work, like data backups or fresh content downloads, and keep running even if the app exits or the device restarts. Great job!

<button class="playlist-skip gc-analytics-event" data-category="devsite-playlist: skip button"> Skip </button>

## Quiz

Test your knowledge and earn your WorkManager badge.
[Take the quiz](https://developer.android.com/courses/quizzes/android-basics-compose-unit-7-pathway-1/android-basics-compose-unit-7-pathway-1.md.txt)