Garret Yoder
02/06/2024, 5:19 PMKonstantin Tskhovrebov
02/06/2024, 5:30 PMstringResources
. it is not suspendKonstantin Tskhovrebov
02/06/2024, 5:30 PMGarret Yoder
02/06/2024, 5:31 PMGarret Yoder
02/06/2024, 5:32 PMKonstantin Tskhovrebov
02/06/2024, 5:33 PMbrucemax
07/27/2024, 9:24 PMoverride fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
super.onStartCommand(intent, flags, startId)
....
lifecycleScope.launch {
val title = org.jetbrains.compose.resources.getString(Res.string.prepare)
val stickyNotificationBuilder = NotificationCompat.Builder(this, notificationChannelId)
.setContentTitle(title)
.setSmallIcon(R.drawable.baseline_timer_24)
....
startForeground(
stickyNotificationId,
stickyNotificationBuilder.build())
}
}
Is it ok or you can suggest something better?
Do you plan to implement sync method?Mohammed Akram Hussain
02/24/2025, 11:14 PM