python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Cannot create an instance of class com.example.retrotest.ui.AlbumsViewModel
Got a error when I try to launch the app with the emulator.
Try to look up the AlbumListFragment errors at line: 40 and 41. I can't understand what I have done wrong. Have implemented this code severa...
Nicholai Mørch Rindarøy
Votes: 0
Answers: 1
Observing LiveData from Room in ViewModel triggers UninitializedPropertyAccessException
I am observing a list from Room database in my ViewModel.
My ViewModel code looks something like below:
@HiltViewModel
class MyViewModel @Inject constructor(
private val repository: Repository
) :...
skafle
Votes: 0
Answers: 1
Jetpack Compose recompostion of property change in list of objects
I am quite new to Jetpack compose and have an issue that my list is not recomposing when a property of an object in the list changes. In my composable I get a list of available appointments from my vi...
xshake
Votes: 0
Answers: 0
Getting the ViewModel in to display information in Jetpack Compose
So I am a bit stuck with how to create the ViewModel and pass it into my composable so that I can use the Data Class models to display on the textView.
Here's the code
MainActivity
private const val T...
OEThe11
Votes: 0
Answers: 1