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 how one can take a look at and debug your WorkManager code. The sequence ended with an episode on how one can migrate your outdated code from GCMNetworkManager and FirebaseJobDispatcher to make use of WorkManager as a substitute.

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

Episode 1: WorkManager: Fundamentals

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

Should you’re new to WorkManager, we additionally advocate 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 how one can return a end result when the work is accomplished in order that the UI will be up to date.

Should you’re involved in utilizing WorkManager with coroutines, we additionally advocate this text from Florina: WorkManager – Kotlin APIs

Episode 3: WorkManager: Superior configuration and testing

In episode 3, we took a have a look at how one can customise the initialization of WorkManager and assist apps that span a number of processes. We’ve gotten a whole lot of questions from builders round testing and debugging, so Ben additionally dove into how one can take a look at your Staff, and helpful debugging methods.

Episode 4: Migrating from GCM NetworkManager and FirebaseJobDispatcher to WorkManager

In episode 4, we targeted on how one can migrate from outdated 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 continues to be utilizing both of these libraries, now’s the time to replace your apps to make use of WorkManager as a substitute!

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: Stay Q&A

The sequence wrapped up with a dwell 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

We’re lastly getting a PS5 professional controller, nevertheless it’s not being made by Sony

A PS5 pro controller is lastly on the best way because of famend producer Scuf, which ought to give PlayStation players an edge when...

Pete Lau confirms the OnePlus 10 will likely be powered by Snapdragon 8 Gen 1

Supply: @OnLeaks / Zouton Quickly after Qualcomm unveiled its latest premium processor, OnePlus CEO Pete Lau confirmed that the corporate's next-generation flagship sequence will likely...

Develop watch faces with the secure Jetpack Watch Face library

Posted by Alex Vanyo, Developer Relations Engineer Watch faces are some of the seen ways in which folks categorical themselves on their smartwatches, they usually’re...

Honeybees Survive Weeks Buried Beneath Volcanic Ash in La Palma

Photograph: Joe Raedle (Getty Photos)Tens of 1000's of honeybees in Spain’s Canary Islands can now add “survived a volcano”...

Related Stories

Stay on op - Ge the daily news in your inbox