Skip to main content

Posts

Showing posts from December, 2018

Android WorkManager

What is WorkManager? WorkManager is one of the  Android Architecture Components  and part of Android Jetpack, a new and opinionated take on how to build modern Android applications. WorkManager is an Android library that runs  deferrable  background work when the work’s  constraints  are satisfied. WorkManager is intended for tasks that require a  guarantee  that the system will run them even if the app exit s. In other words, WorkManager provides a battery-friendly API that encapsulates years of evolution of Android’s background behavior restrictions. This is critical for Android applications that need to execute background tasks! When to use WorkManager WorkManager handles background work that needs to run when various constraints are met, regardless of whether the application process is alive or not. Background work can be started when the app is in the background, when the app is in the foreground, or when the app star...