Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Working with WorkManager

Working with WorkManager

This talk is about opportunistic guaranteed deferred background execution on Android. I'm not kidding. This is what WorkManager handles for us. You'll get a grasp on the basic concepts of WorkManager and by the time you're done with the slides, you'll be able to start Working with WorkManager!

Presented at the January 2020 installment of the Android Budapest meetup at AutSoft Ltd.
https://www.meetup.com/android-budapest/events/267929246/

The talk was recorded and it's available on the Android Budapest YT channel:
https://www.youtube.com/watch?v=oh9AgdV5KbQ

István Juhos

January 30, 2020
Tweet

More Decks by István Juhos

Other Decks in Programming

Transcript

  1. @stewemetal Just think about it… E x e c u

    t i o n O p p o r t u n i s t i c G u a r a n t e e d B a c k g r o u n d D e f e r r e d
  2. @stewemetal References • The official documentation of WorkManager https://developer.android.com/topic/libraries/architecture/workmanager •

    The official documentation for testing WorkManager https://developer.android.com/topic/libraries/architecture/workmanager/h ow-to/testing-210 • Background Work with WorkManager – Kotlin codelab https://codelabs.developers.google.com/codelabs/android-workmanager- kt/index.html
  3. @stewemetal References • Android Jetpack: easy background processing with WorkManager

    (Google I/O ‘18) https://www.youtube.com/watch?v=IrKoBFLwTN0 • WorkManager: Beyond the Basics (Android Dev Summit ‘19) https://www.youtube.com/watch?v=Bz0z694SrEE • When WorkManager Stops Working (Dan Lew) https://blog.danlew.net/2020/01/07/when-workmanager-stops-working/
  4. István Juhos [email protected] stewemetal Working withWorkManager • Use it when

    your work • depends on system or resource state AND • doesn’t need precise timing • Respects background processing limits • Highly configurable, supports Coroutines and Rx