MAD Abilities 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 check and debug your WorkManager code. The collection ended with an episode on the right way to 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 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 raised perceive how WorkManager schedules work.

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

Episode 2: WorkManager: Working within the background

The collection continued with Ben giving a extra in-depth have a look at how WorkManager offers with multi-threading. When working with threads, you may have 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 consequence when the work is accomplished in order that the UI may be up to date.

In the event you’re all for 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 help apps that span a number of processes. We’ve gotten quite a lot of questions from builders round testing and debugging, so Ben additionally dove into the right way to check your Employees, 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 outdated job scheduling libraries (GCMNetworkManager and FirebaseJobDispatcher) to WorkManager. As soon as your app begins concentrating on API stage 30 and above, GCM NetworkManager and FirebaseJobDispatcher will not work on units 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 just lately labored on and the way the library has helped his improvement course of.

Episode 6: Dwell Q&A

The collection 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

Apple releases iOS 14.7.1 with repair for Apple Watch unlock bug, extra

Apple is releasing iOS 14.7.1 to the general public at this time, precisely one week after the release of iOS 14.7. This comes after...

5 finest BMX video games for Android to get your grind on

BMX is a greater exercise in actual life than it's in video video games. There have by no means been many good BMX video...

This adjustable wi-fi keyboard has mechanical switches and an invisible stand

As of late, virtually everybody makes use of a keyboard for his or her laptop or pill. But not each keyboard is identical. Epomaker...

Watch a basketball robotic present NBA stars the way to shot

Because the US males’s basketball crew limped to a primary Olympics loss since 2004, a robotic gave them a lesson in elite-level taking pictures.The six-foot-ten...

Related Stories

Stay on op - Ge the daily news in your inbox