https://github.com/fekri8614/android-worker
Android Worker Example
https://github.com/fekri8614/android-worker
agpl android android-application android-example example kotlin kotlin-android worker worker-example workers
Last synced: 6 months ago
JSON representation
Android Worker Example
- Host: GitHub
- URL: https://github.com/fekri8614/android-worker
- Owner: fekri8614
- Created: 2025-01-30T15:13:48.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2025-01-30T16:08:45.000Z (8 months ago)
- Last Synced: 2025-02-10T19:18:14.136Z (8 months ago)
- Topics: agpl, android, android-application, android-example, example, kotlin, kotlin-android, worker, worker-example, workers
- Language: Kotlin
- Homepage: https://github.com/sonusurender/WorkManagerDemo
- Size: 113 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WorkManagerExample 🚀
A hands-on Android project demonstrating the use of **WorkManager** for background tasks.


---
## 📖 Description
This project is an exercise to explore the capabilities of **WorkManager** in Android.
WorkManager is a powerful library for managing deferrable and guaranteed background tasks, even if the app is closed or the device restarts.### Features:
- ✅ One-time tasks
- ✅ Periodic tasks
- ✅ Chained tasks
- ✅ Task constraints (e.g., network, charging)---
## 📦 Dependencies
This project uses the following dependencies, managed via `libs.versions.toml`:```toml
[versions]
agp = "8.3.0"
kotlin = "1.9.0"
coreKtx = "1.15.0"
junit = "4.13.2"
junitVersion = "1.1.5"
espressoCore = "3.5.1"
lifecycleRuntimeKtx = "2.8.7"
activityCompose = "1.8.0"
composeBom = "2024.04.01"
work = "2.9.0"[libraries]
#...
androidx-lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "lifecycleRuntimeKtx" }
androidx-lifecycle-viewmodel-ktx = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-ktx", version.ref = "lifecycleRuntimeKtx" }
androidx-lifecycle-runtime-compose = { group = "androidx.lifecycle", name = "lifecycle-runtime-compose", version.ref = "lifecycleRuntimeKtx" }
androidx-work-runtime = { group = "androidx.work", name = "work-runtime-ktx", version.ref = "work" }
#...
```📂 You can view the full `libs.versions.toml` file [here](https://github.com/fekri8614/android-worker/blob/master/gradle/libs.versions.toml).
---
## 🛠️ Setup
To run this project your own, follow these steps:
1. Clone the repository:
```sh
git clone https://github.com/fekri8614/android-worker.git
```
2. Open the project in **Android Studio**.
3. Sync the project with Gradle files.
4. Build and run the app on an emulator or physical device.---
## 🤝 Contributing
Contributions are welcome! If you'd like to contribute, please follow these steps:
1. Fork the repository.
2. Create a new branch:
```sh
git checkout -b feature/YourFeatureName
```
3. Commit your changes:
```sh
git commit -m "Add some feature"
```
4. Push to the branch:
```sh
git push origin feature/YourFeatureName
```
5. Open a **Pull Request**.