Basics: Android WorkManager

When developing an android app it is very important not to block the UI- or main thread. Doing so, will lead to a very bad and slow experience for the user. To avoid this from happening Android inc. developed lots of different classes and builders that help schedule tasks asynchronously. One of these tools is the WorkManager and its respective Workers. In the following article I will explain the WorkManager and its building blocks.

The WorkManager is a class that enqueues WorkerRequests that are predefined with custom Workers. Below one can depict an example Worker and how it is…