This message was deleted.
s
This message was deleted.
😶 1
d
DayDoApplication.kt.cpp
DayDoApplication.kt
c
You cannot initialize anything with a “Context” before onCreate. Move the initialization in the onCreate function of the application.
d
MainViewModel.kt.cpp
I'm trying to get an instance of database in the view model but I have some problem
c
Sorry, this is not a channel for rubber ducking your code. There are plenty of tutorials out there how to handle Room DB and ViewModels.
d
Ok. For future, for what this channel exists?
c
Discussing Kotlin programming language related issues/question when implementing an android app. You can check out other resources in the channel description.