Reader small image

You're reading from  Modern Android 13 Development Cookbook

Product typeBook
Published inJul 2023
Reading LevelIntermediate
PublisherPackt
ISBN-139781803235578
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Madona S. Wambua
Madona S. Wambua
author image
Madona S. Wambua

Madona S. Wambua is a Google Developer Expert in the Android category, an Android Engineer programming in Kotlin, and the founder and Chief Technology Officer of Jibu Labs. She is also a Women Tech Makers Ambassador and Co-Chair of AnitaB. She has over ten years of experience in the field and has worked on consumer-facing applications and building software development kits for developers. She has also worked on the famous Google Glass during her tenure at a startup and got an opportunity to work on interactive AR videos to transform lives through machine learning and computer vision. Madona is also a Keynote Speaker and the host of Tech Talks with Madona, a podcast geared towards supporting women and allies in tech.
Read more about Madona S. Wambua

Right arrow

How to debug WorkManager

Any operation that requires working in the background and sometimes making network calls need proper exception handling. This is due to the fact that you do not want your users facing issues and a lack of exception handling coming back to haunt your team or you as a developer.

Hence, knowing how to debug WorkManager will come in handy, as this is one of those issues that might last for days if you have a bug. In this recipe, we will look at how to debug WorkManager.

Getting ready

To follow this recipe, you must have completed all previous recipes of this chapter.

How to do it…

You might encounter an issue where WorkManager no longer runs if it is out of sync. Follow this recipe to debug WorkManager:

  1. To be able to set up debugging, we will need to first create a custom initialization in our AndroidManifest.xml file, that is, by disabling the WorkManager initializer:
    <provider
        ...
        tools...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Modern Android 13 Development Cookbook
Published in: Jul 2023Publisher: PacktISBN-13: 9781803235578

Author (1)

author image
Madona S. Wambua

Madona S. Wambua is a Google Developer Expert in the Android category, an Android Engineer programming in Kotlin, and the founder and Chief Technology Officer of Jibu Labs. She is also a Women Tech Makers Ambassador and Co-Chair of AnitaB. She has over ten years of experience in the field and has worked on consumer-facing applications and building software development kits for developers. She has also worked on the famous Google Glass during her tenure at a startup and got an opportunity to work on interactive AR videos to transform lives through machine learning and computer vision. Madona is also a Keynote Speaker and the host of Tech Talks with Madona, a podcast geared towards supporting women and allies in tech.
Read more about Madona S. Wambua