

If you get stuck with this codelab at any point or, if you want to look at the final state of the code, you can use the following link: If you're new to these classes, check out the Android Lifecycle-aware components Codelab (specifically for ViewModel and LiveData) or Room with a View Codelab (an introduction to Architecture Components). You should also be familiar with LiveData and ViewModel.The latest Android Studio stable version.Was that the Loch Ness monster or evelopera toy submarine? With Blur-O-Matic, no-one will ever know.

In this codelab you'll be working on Blur-O-Matic, an app that blurs photos and images and saves the result to a file. Gone are the days a photographer could take a reliably blurry picture of something mysterious. These days, smartphones are almost too good at taking pictures. For more details about when to use WorkManager, check out the Guide to background processing. As such, it is not a catch-all for running every task off of the main thread. WorkManager offers guaranteed execution, and not all tasks require that. Periodically syncing local data with the network.Applying filters to images and saving the image.

Some examples of tasks that are a good use of WorkManager: The WorkManager library is a good choice for tasks that are useful to complete, even if the user navigates away from a particular screen or your app. To learn more, check out the WorkManager documentation. WorkManager picks the right APIs to use, based on conditions like the user's device API level. WorkManager sits on top of a few APIs such as JobScheduler and AlarmManager.
