Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asifsanjary/interval_based_task_android_notification_manager_foreground_kotlin
Interval based task in android app with notification manager foreground kotlin
https://github.com/asifsanjary/interval_based_task_android_notification_manager_foreground_kotlin
android-application foreground-service kotlin-android notification-service
Last synced: about 1 month ago
JSON representation
Interval based task in android app with notification manager foreground kotlin
- Host: GitHub
- URL: https://github.com/asifsanjary/interval_based_task_android_notification_manager_foreground_kotlin
- Owner: asifsanjary
- Created: 2024-07-08T06:37:56.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-07-08T06:39:53.000Z (6 months ago)
- Last Synced: 2024-07-20T10:29:56.656Z (6 months ago)
- Topics: android-application, foreground-service, kotlin-android, notification-service
- Language: Kotlin
- Homepage:
- Size: 75.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Interval-based Task on Foreground Service
- Using count-down timer on Foreground Service.
- Mainly useful for small interval-based work where interval is less than 15 minutes and app needs to stay in Foreground
- Otherwise it's better to use WorkManager with Foreground Service.Improvements
- As Count-down Timer uses it's own `handler`, maybe it's better to make a custom Count-down Timer with a reference to `handler`, so that more functionality can be added
- There may be other improvements, let me know hereReferences:
- https://developer.android.com/guide/components/services
- https://developer.android.com/guide/components/foreground-services
- https://stackoverflow.com/questions/10032003/how-to-make-a-countdown-timer-in-android