MAD Expertise WorkManager : Wrap-Up

Posted by Caren Chang, Developer Relations Engineer

In case you missed it, we’ve simply completed a MAD Skills series on WorkManager. We began by introducing WorkManager for these new to the library after which proceeded to speak extra about superior usages together with the right way to take a look at and debug your WorkManager code. The sequence ended with an episode on the right way to migrate your previous code from GCMNetworkManager and FirebaseJobDispatcher to make use of WorkManager as an alternative.

Right here’s a fast abstract of what we coated.

Episode 1: WorkManager: Fundamentals

In our first episode, we explored the fundamentals of WorkManager via the WorkManager codelab. We began by understanding the right way to outline work we would like accomplished, and the right way to schedule the work. We then moved on to implementing several types of work: distinctive and periodic. Lastly, we ended the episode by having a look at app standby buckets to higher perceive how WorkManager schedules work.

When you’re new to WorkManager, we additionally suggest having a look on the following articles:

Episode 2: WorkManager: Working within the background

The sequence continued with Ben giving a extra in-depth have a look at how WorkManager offers with multi-threading. When working with threads, you’ve the choice of utilizing Executors, coroutines or RxJava, and Ben demonstrated every of those approaches with WorkManager. The episode concluded by demonstrating the right way to return a outcome when the work is accomplished in order that the UI could be up to date.

When you’re thinking about utilizing WorkManager with coroutines, we additionally suggest this text from Florina: WorkManager – Kotlin APIs

Episode 3: WorkManager: Superior configuration and testing

In episode 3, we took a have a look at the right way to customise the initialization of WorkManager and assist apps that span a number of processes. We’ve gotten loads of questions from builders round testing and debugging, so Ben additionally dove into the right way to take a look at your Staff, and helpful debugging strategies.

Episode 4: Migrating from GCM NetworkManager and FirebaseJobDispatcher to WorkManager

In episode 4, we targeted on the right way to migrate from previous job scheduling libraries (GCMNetworkManager and FirebaseJobDispatcher) to WorkManager. As soon as your app begins focusing on API stage 30 and above, GCM NetworkManager and FirebaseJobDispatcher will not work on gadgets working Android Marshmallow (6.0) and above. In case your app remains to be utilizing both of these libraries, now could be the time to replace your apps to make use of WorkManager as an alternative!

Episode 5: WorkManager with Hugo

Android GDE Hugo Visser talked about why he selected to make use of WorkManager in a well being app he lately labored on and the way the library has helped his growth course of.

Episode 6: Reside Q&A

The sequence wrapped up with a stay Q&A session the place we answered your WorkManager associated questions. Watch the recording to see all of your questions answered, together with future plans for WorkManager, dealing with duplicate work, retrying failed work, and extra!


Recent Articles

Apple Pronounces ‘Spring Loaded’ Occasion on April 20

“Spring Loaded” will kick off at 10 a.m. PST and be proven on-line at apple.com. We’re anticipating to see new iPad Professional and Mac fashions...

InfiRay T3S telephone thermal digital camera helps you to see the invisible

Get the ability to see the invisible in the dead of night with the InfiRay Extremely Clear T3S telephone thermal digital camera. This compact...

Microsoft did not lie: The Floor Laptop computer 4 actually is twice as quick

Microsoft unveiled the Floor Laptop computer 4 on Tuesday with some daring efficiency claims: The Floor Laptop computer 4 ought to surpass the efficiency...

Microsoft Floor Duo 2 may have an excellent higher hinge

A way forward for foldable smartphones has all the time been faintly seen on the horizon, with firms teasing us with inspiring potentialities—however they...

Related Stories

Stay on op - Ge the daily news in your inbox