WorkManager Codelab
===================================
This repository contains the code for the [WorkManager Codelab](https://developer.android.com/codelabs/basic-android-kotlin-compose-workmanager).
Introduction
------------
At I/O 2018, Google announced [Android Jetpack](https://developer.android.com/jetpack/), a collection of libraries, tools, and architectural guidance to accelerate and simplify the development of great Android apps. One of those libraries is the [WorkManager library](https://developer.android.com/topic/libraries/architecture/workmanager/). The WorkManager library provides a unified API for deferrable one-off or recurring background tasks that need guaranteed execution. You can learn more by reading the [WorkManager Guide](https://developer.android.com/topic/libraries/architecture/workmanager/), the [WorkManager Reference](https://developer.android.com/reference/androidx/work/package-summary) or doing the [WorkManager Codelab](https://developer.android.com/codelabs/basic-android-kotlin-compose-workmanager).
Pre-requisites
--------------
* Familiarity with how to open, build, and run apps with Android Studio.
* Make sure Android Studio is updated, as well as your SDK and Gradle. Otherwise, you may have to wait for a while until all the updates are done.
* A device or emulator that runs API level 21+
You need to be solidly familiar with the Kotlin programming language, object-oriented design concepts, and Android Development Fundamentals.
In particular:
* Basics of [Jetpack Compose](https://developer.android.com/courses/pathways/compose)
* Some familiarity with URIs and File I/O
* Familiarity with [Kotlin Flow](https://developer.android.com/kotlin/flow) and [ViewModel](https://developer.android.com/topic/libraries/architecture/viewmodel)
Getting Started
---------------
1. [Install Android Studio](https://developer.android.com/studio/install.html), if you don't already have it.
2. Download the sample.
3. Import the sample into Android Studio.
4. Build and run the sample.
Notes:
- The application code contains a battery not low constraint. If the device/emulator has a low battery, the application will appear to hang until this constraint is met.
- The app requires notifications to be enabled. To enable notifications, navigate to the Android Settings menu > Apps > Blur-O-Matic > Notifications > Enable "All Blur-O-Matic notifications".
没有合适的资源?快使用搜索试试~ 我知道了~
在Android应用中使用WorkManager处理后台工作
共108个文件
xml:16个
kt:16个
sample:13个
0 下载量 103 浏览量
2024-07-22
18:45:08
上传
评论
收藏 1.13MB ZIP 举报
温馨提示
在Android应用中使用WorkManager处理后台工作
资源推荐
资源详情
资源评论
收起资源包目录
在Android应用中使用WorkManager处理后台工作 (108个子文件)
0e8a62ce318e5c40c5794c84bc76f423403425 76B
a1042c84c96dc9b7d45e4700ae7463fab408f6 71B
gradlew.bat 3KB
executionHistory.bin 1017KB
outputFiles.bin 169KB
fileHashes.bin 81KB
resourceHashesCache.bin 19KB
last-build.bin 1B
config 421B
description 73B
exclude 240B
f1458196d89f9ca38fe5fa3be6a9618ae926d4 78B
f4126ba546672cd9a64d1e30556d917ed5a739 83B
.gitignore 438B
.gitignore 50B
.gitignore 8B
gradlew 6KB
HEAD 773B
HEAD 248B
HEAD 30B
HEAD 24B
pack-e612655b5ef1f7f6fb12b671d2171917cc8ed0bf.idx 13KB
index 6KB
gradle-wrapper.jar 58KB
BluromaticScreen.kt 9KB
WorkerUtils.kt 5KB
BlurViewModel.kt 3KB
WorkManagerBluromaticRepository.kt 3KB
BlurWorker.kt 3KB
Theme.kt 3KB
SaveImageToFileWorker.kt 2KB
BlurActivity.kt 2KB
CleanupWorker.kt 2KB
Constants.kt 1KB
BlurAmountData.kt 1KB
BluromaticApplication.kt 1KB
Color.kt 1KB
AppContainer.kt 941B
BluromaticRepository.kt 882B
BlurAmount.kt 809B
build.gradle.kts 3KB
build.gradle.kts 1KB
settings.gradle.kts 984B
LICENSE 11KB
checksums.lock 17B
executionHistory.lock 17B
buildOutputCleanup.lock 17B
dependencies-accessors.lock 17B
fileHashes.lock 17B
main 248B
main 41B
README.md 2KB
CONTRIBUTING.md 2KB
.name 12B
pack-e612655b5ef1f7f6fb12b671d2171917cc8ed0bf.pack 448KB
packed-refs 473B
android_cupcake.png 266KB
proguard-rules.pro 770B
file-system.probe 8B
gradle.properties 1KB
local.properties 368B
gradle-wrapper.properties 236B
config.properties 91B
cache.properties 51B
gc.properties 0B
gc.properties 0B
gc.properties 0B
pre-rebase.sample 5KB
fsmonitor-watchman.sample 5KB
update.sample 4KB
push-to-checkout.sample 3KB
pre-commit.sample 2KB
prepare-commit-msg.sample 1KB
pre-push.sample 1KB
commit-msg.sample 896B
pre-receive.sample 544B
applypatch-msg.sample 478B
pre-applypatch.sample 424B
pre-merge-commit.sample 416B
post-update.sample 189B
starter 186B
starter 41B
ic_launcher_round.webp 8KB
ic_launcher_round.webp 6KB
ic_launcher_round.webp 4KB
ic_launcher.webp 4KB
ic_launcher_round.webp 3KB
ic_launcher.webp 3KB
ic_launcher.webp 2KB
ic_launcher_round.webp 2KB
ic_launcher.webp 1KB
ic_launcher.webp 982B
workspace.xml 8KB
ic_launcher_background.xml 6KB
ic_launcher_foreground.xml 2KB
strings.xml 2KB
AndroidManifest.xml 2KB
ic_launcher_round.xml 994B
ic_launcher.xml 994B
dimens.xml 805B
共 108 条
- 1
- 2
资源评论
m0_67229679
- 粉丝: 301
- 资源: 14
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功