Colton Idle
12/15/2022, 8:45 PMPablichjenkov
12/15/2022, 8:54 PMPablichjenkov
12/15/2022, 9:04 PMPablichjenkov
12/15/2022, 9:07 PMPablichjenkov
12/15/2022, 9:09 PMFrancesc
12/15/2022, 10:25 PMa possible process death due to low memory, that you LL never seen most likelyhave you tried to return to your app after opening the camera app? 😄
Pablichjenkov
12/15/2022, 10:39 PMPablichjenkov
12/15/2022, 10:45 PMPablichjenkov
12/15/2022, 10:47 PMgildor
12/16/2022, 6:47 AMthat you LL never seen most likelyIt’s totally wrong, not only camera, many other actions can cause it, things like call, any other app opened or even critical things, like link opened in browser of file picker. And it’s not only Android thing, process can be destroyed on iOS too
I would agree 8 years agoNo, it’s not only 8 years ago, perfectly reproducible in the wild with modern devices
Other platforms don’t complicate things that muchWell, yes, desktop and web apps usually just don’t care about it and use many times more memory in extreme cases
And, in the case of a crashHow does process crash related to this? In case of crash app of course is not restored. Process kill by the system is not crash, and of course user want to restore it And returning back to Colton’s question. Yes, it’s classical MVVM, I really don’t see any problem with it, lifecycle of VM or way to create VM completely unrelated to this
gildor
12/16/2022, 6:52 AMcurioustechizen
12/16/2022, 11:05 AMPablichjenkov
12/16/2022, 3:28 PMViewModel
term for something that perhaps should be named different. Lets say, *ActivityStateHolder*/*FragmetStateHolder* or LifecycleStateHolder or LifecycleOwnerStateHolder or ConfigurationChangeStateHolder I don’t know. Some name that represents a framework class and is explicitly tied to the framework. Then live the term ViewModel out of the framework. Let this generic term be implemented by developers as whatever they are willing to. That way developers can have easier equivalence with iOS and so.
But since the class is in the framework and forces you to have a ViewModelStoreOwner + LifecycleOwner in order to use it, it makes the conversation with other platforms a bit less trivial.Colton Idle
12/16/2022, 4:10 PMI did a quick look up on the internet and it seems there is a significant amount of Android low end devices running out there. Not every person in the world can spend 800+ dollars in a decent device. In that regards, I got to admit I was wrong in what I said. I also apologize for confusing process death with a crash, I don’t know why anytime I listen to process death the word crash comes to my mind.Wow. what a reasonable thing to say. love to see it!
The problem I have, is the fact that they picked theI think Yigit boyar talked about this on reddit and basically said naming is hard, and yes the name is unfortunate.ViewModel
Colton Idle
12/16/2022, 4:11 PMPablichjenkov
12/16/2022, 4:25 PMFrancesc
12/16/2022, 10:19 PM@gildor you said "Yes, it’s classical MVVM," what about that chart points out "classical MVVM"? Is it the fact that the VM has an observable data holder (LiveData?)It's the multiple livedatas for state. On MVI you would have a single observable that represents the whole state of the screen, as opposed to a myriad of observables for different pieces of the screen. The other difference, which is not shown in that diagram, would be how the actions or intents go to the viewmodel, in MVI you would funnel all those through a reducer to mutate the state, while on MVVM that's a bit all over the place.
mattinger
12/22/2022, 4:23 AM