LifecycleService as a Foreground Service || Kotlin || LiveData || Android Tutorial

Описание к видео LifecycleService as a Foreground Service || Kotlin || LiveData || Android Tutorial

This video shows the usage of lifecycleservice using a stopwatch timer as an example. As the timer gets started, there will be a foreground service that shows a notification with a current timer. I have used a singleton pattern approach for service in order to observe live data values that are inside the service.

00:00 Intro
00:48 About base branch
01:20 Activity to Service communication
07:10 Create TimerEvent sealed class
07:54 Service to Activity communication
11:01 UI state management
14:22 Create sticky notification
24:05 Start foreground
25:50 Stop service
29:10 Initialize values in service
31:19 Implement timer logic
34:59 Update the sticky notification
38:00 Dagger Hilt on Android service
43:44 Why I made this video?

Please like, share, and subscribe. There's lot of dope content coming soon :)


Github repo - https://github.com/sriharsha1507/life...

android tutorial || android studio tutorial || android services

Комментарии

Информация по комментариям в разработке