I am training a model using Learning Rate Scheduler in Pytorch to decrease the value of learning rate. By using learning rate scheduler, I reduced lea ...
I am training a model using Learning Rate Scheduler in Pytorch to decrease the value of learning rate. By using learning rate scheduler, I reduced lea ...
After reading these Android documents, we feel confused about how to benefit on "warm start issue" from the saved instance state bundle passed into on ...
Following this question I made some simple changes in my app, but it's no working as I expect. I have a Timer that sends a notification when the time ...
In a typical Android ViewModel, we can easily create a Restorable LiveData using Whenever the liveData value is set, it is automatically saved and ...
I am building a movie app. There is a recyclerview matching parent size,and 1 search action button(SearchView). When I search for a movie,everything ...
When we have a liveData as below, we cannot _liveData.value++, as the value is nullable. The article https://proandroiddev.com/improving-livedata-n ...
I followed the instructions in the following page and created a viewModel, but SavedStateHandle does not work when I close the app and open it again. ...
How to use SavedStateViewModelFactory with hilt initialization ? I read about savedstate and all the developers initialize it without hilt And when I ...
How to use Saved State module for ViewModel in Background Thread For MutableLiveData we have the option to use setvalue and postvalue , where Postval ...
In my personal project, I'm using Hilt (dependency injection), SavedStateHandle and ViewModel. SavedStateHandle which allows me to save data across p ...
I have an app which is having Master/Detail kind of architecture. When I select some item, the details are displayed in details fragment. For the det ...
I have a model called, "GetInTouch" (contact us form) with its controller and view all works fine. My problem is that, when the app loads it has a 'H ...
Never mind. Apparently I had the wrong idea about what a SavedState is supposed to do. Leaving the post here so my foolishness is preserved for the ag ...
I use Navigation Component and load data in a recyclerview (MVVM architecture so this fragment has a viewmodel) if I move to another fragment and then ...
I am trying to use the following code: suspend fun <T> SavedStateHandle.getStateFlow( key: String, initialValue: T? = get(key) ): Mutab ...
Using @Assisted annotation with savedStateHandle and by viewModels() it's possible to inject SavedStateHandle object to ViewModel in modules that are ...
I am trying to use savedStateHandle in my ViewModel and test it. My simple case is that I'm just storing an Int value in the SavedStateHandle and tryi ...
My app is crashing on some user's devices with the exception below. Everything is working fine on my devices. I don't get this exception on my own ...
I have a screen that loads a bunch of requests and collects some data from the user on the same screen and an external WebView. Therefore, I have a Vi ...
I have a ViewModel I am currently using to contain data and share values between Fragments. This model also helps instantiate the data for the app on ...