Android WorkManager — Introduction

What is all about Workmanager…

Danish Amjad
Published in
2 min readJan 7, 2019


What is WorkManager:

WorkManager is basically an AndroidJetPack architecture component and It is used to scheduling background task. The task to run ’s immediately or at an appropriate time.

Why WorkManager?

Now you might ask why work manager? as we had the options for scheduling task using job-scheduler, firebase-job-scheduler or alarm-manager, but these methods were so complicated & the main issue was we had to find the device version and for that reason, it will make the code lengthy, but with work-manager, we don’t need to worry about the device capability.

  1. It provides us the clean interface, no more complex coding.
  2. The work-manager give us the guarantee for the execution.

The Basic Classes Of Work-Manager:

  1. Worker: The work needs to be defined here.
  2. WorkRequest: It defines a work, like which worker class is going to be executed.
  3. WorkManager: It enqueues and managers the work request.
  4. WorkInfo: It contains information about the work.

That’s it so far for the Introduction, In the next article, we will learn about the oneTimeWorkRequest.

Sharing the knowledge is Caring :-)

Thanks for reading this article. Be sure to clap to recommend this article if you found it helpful. It means a lot to me.

If you need any help then Join me on Twitter, Linkedin, Github, and Subscribe to my Youtube Channel.



Danish Amjad

Senior Mobile Engineer (Android). Open Source Contributor, Technical Writer, Email: check my website at