# Workmanager

Published articles for Workmanager.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Preventing WorkManager crashes when updating Android worker classes

DevFeed: [Preventing WorkManager crashes when updating Android worker classes](<https://devfeed.tech/articles/the-curious-case-of-crashing-workers-28699.md>)

Original publisher: [Read original article](<https://jeroenmols.com/blog/2022/04/27/workmanager-crash/>)

Author: info@jeroenmols.com (Jeroen Mols)

Published: 2022-04-27T00:00:00Z

Content type: tutorial

Language: en

Sources: [Jeroen Mols](<https://devfeed.tech/sources/jeroen-mols.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [migration](<https://devfeed.tech/topics/migration.md>), [App](<https://devfeed.tech/topics/app.md>), [implementation](<https://devfeed.tech/topics/implementation.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [background-work](<https://devfeed.tech/tags/background-work.md>), [blogs](<https://devfeed.tech/tags/blogs.md>), [crash](<https://devfeed.tech/tags/crash.md>), [crashes](<https://devfeed.tech/tags/crashes.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [lifecycle](<https://devfeed.tech/tags/lifecycle.md>), [migrate](<https://devfeed.tech/tags/migrate.md>), [retry](<https://devfeed.tech/tags/retry.md>), [scheduled](<https://devfeed.tech/tags/scheduled.md>), [workmanager](<https://devfeed.tech/tags/workmanager.md>)

### AI overview

This tutorial explains how Android WorkManager can crash after an app update when pending work references a worker class that was removed, renamed, or moved. It discusses cancelling or migrating pending work and using a custom WorkerFactory.

### Source excerpt

WorkManager is great to schedule background work on Android. However, since scheduled work lives outside of the app lifecycle, you might run into unexpected crashes.

## How to reliably update widgets on Android

DevFeed: [How to reliably update widgets on Android](<https://devfeed.tech/articles/how-to-reliably-update-widgets-on-android-37168.md>)

Original publisher: [Read original article](<https://arkadiuszchmura.com/posts/how-to-reliably-update-widgets-on-android/>)

Published: 2022-02-12T00:00:00Z

Content type: tutorial

Language: en

Sources: [Arkadiusz Chmura](<https://devfeed.tech/sources/arkadiusz-chmura.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [Jetpack](<https://devfeed.tech/topics/jetpack.md>), [App](<https://devfeed.tech/topics/app.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-jetpack](<https://devfeed.tech/tags/android-jetpack.md>), [background](<https://devfeed.tech/tags/background.md>), [battery](<https://devfeed.tech/tags/battery.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [setup](<https://devfeed.tech/tags/setup.md>), [widget](<https://devfeed.tech/tags/widget.md>), [workmanager](<https://devfeed.tech/tags/workmanager.md>)

### AI overview

This tutorial explains why Android widgets may not update reliably using android:updatePeriodMillis alone, particularly on devices whose vendors restrict background processing. It presents Android Jetpack WorkManager as a way to schedule periodic work that updates widget instances through AppWidgetManager.

### Source excerpt

The default solution with android:updatePeriodMillis doesn't always work.