Kazem Moridi
02/26/2023, 6:46 PMclass TTSService(override val di: DI) : MediaBrowserServiceCompat(), AudioManager.OnAudioFocusChangeListener, DIAware {
then there will be an error in manifest that say
This class should provide a default constructor (a public constructor with no arguments) (ireader.domain.services.tts_service.media_player.TTSService)
is there any way to use services using kodein?override lateinit var di: DI
then in onCreate in service I initialize it like this
override fun onCreate() {
di = (this@TTSService.application as DIAware).di
super.onCreate()
Hylke Bron
02/27/2023, 7:32 AM