paint-brush
Running Background Tasks in Android with WorkManager: Part 4by@azamatnurkhojayev
138 reads

Running Background Tasks in Android with WorkManager: Part 4

by Azamat Nurkhojayev9mMay 10th, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In this article, we will look at how to pass data to a task and how to get a result. The data is placed in the `Data` object using its builder. Next, we pass this object to the `setInputData` method of the WorkRequest builder. For the task to return data, you must pass it to the ‘setOutputData’ method.
featured image - Running Background Tasks in Android with WorkManager: Part 4
Azamat Nurkhojayev HackerNoon profile picture
Azamat Nurkhojayev

Azamat Nurkhojayev

@azamatnurkhojayev

I'm an Android developer. Teaches courses at the programming school, and writes articles about development.

Learn More
LEARN MORE ABOUT @AZAMATNURKHOJAYEV'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Azamat Nurkhojayev HackerNoon profile picture
Azamat Nurkhojayev@azamatnurkhojayev
I'm an Android developer. Teaches courses at the programming school, and writes articles about development.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite