Google is committed to advancing racial equity for Black communities. See how.

Use coroutines in common Android use cases

Use coroutines to simplify background task management for common use cases such as making network calls and accessing local data.

 

Use Kotlin Coroutines in your Android Apps

Codelab

Learn best practices for how to integrate coroutines into your app’s UI, as well as with Room, Retrofit, and WorkManager. You'll also learn how to test coroutines.

WorkManager and Coroutines

Article Optional

This article walks you through using WorkManager with coroutines to schedule asynchronous tasks that will run even if the app exits, or the device restarts.

Room and Coroutines

Article Optional

In the “Async queries with Kotlin coroutines” section of this article, you will see how to add the suspend Kotlin keyword to your DAO methods to make them asynchronous using Kotlin coroutines functionality.

Android Room with a View

Codelab

Build an app that gets and saves data from a database using Android Architecture Components with coroutines.

Use coroutines in common Android use cases quiz

Test your knowledge of Kotlin coroutines and earn your pathway badge!