Embrace the WorkManager

Pietro Maggi

Android Developer Advocate

In the Android Developer Relations team Pietro’s focus is to provide an awesome developer experience around Play technologies like Android Vitals and Android App Bundles.

twitter-logo-button.png
Abstract

After all of 2018 spent as alpha and beta, WorkManager graduated in 2019 to its first stable release and it is now the recommended solution for scheduling and executing deferrable background tasks in Android. In this talk we’ll quickly look into which use cases are a good fit for WorkManager, and which are better handled by different tools/APIs. Then we will jump into the API itself covering the different options available, from the simple Worker class to the newer CoroutineWorker. All this with an eye on how you can (and should) test your Workers and how you can implement some of the few missing features that are not yet covered by WorkManager out of the box. With this talk you’ll learn: * When to use (and when not) WorkManager * Which Worker class to use for your particular use case * How to test your Worker classes * How to customize WorkManager configuration * How to use Dagger2 with WorkManager

  • Grey Facebook Icon
  • Grey Twitter Icon
  • Grey YouTube Icon

Droidcon is a registered trademark of Mobile Seasons GmbH