ViewModels & Configuration Changes - Android Basics 2023

ViewModels & Configuration Changes - Android Basics 2023

Philipp Lackner

1 год назад

102,646 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

AboveMediocrity
AboveMediocrity - 14.09.2023 13:31

Is Google making all this unnecessarily complex? Newbie here

Ответить
Neslet Chimaew
Neslet Chimaew - 12.09.2023 23:45

i wrote val viewModel by viewModel<MyViewModel> and tried to get rid of error message for 3 hours. i have dealt with this before, but had simply forgotten so i looked somewhere else for mistakes. i'm beginner 4 weeks in

Ответить
Neslet Chimaew
Neslet Chimaew - 12.09.2023 19:22

You're making me learn compose in a mere couple of weeks. Why is noone else coming up with these essential videos? These solutions are so simple yet noone will mention them in a documentation

Ответить
soccymountain
soccymountain - 11.09.2023 00:53

Ich habe gehört, dass Du ein Händchen dafür hast AndroidStudio super gut zu erklären. Aber warum auf englisch? Gibt’s da nicht schon jede Menge guter Video s? Ich deutsch dagegen sieht’s da schon viel schlimmer aus. Warum also nicht auf deutsch?? Die AutoÜbersetzung ist viel zu schnell und auch nicht immer genau.
Vielen Dank fürs Verständnis.
Andreas Blechschmidt

Ответить
Andrew Dunbar
Andrew Dunbar - 01.09.2023 05:45

Is this telling us we need to use ViewModel or just what it can be used for if we want to use it? Is it the only way to handle configuration changes or is it an alternative to APIs like rememberSaveable?

Ответить
Kunal Das
Kunal Das - 30.08.2023 08:13

Can you make a video of the internal mechanism of how view model works in android. This in my experience has been a recurring question in android interviews.
- Why do we need to extend the ViewModel base class in android
- How view model survives when an activity is destroyed?
And not just view models, but most interviewers tend to ask the under the hood workings of most things in android. This would really help folks not just learn how to use these things, but to understand them and better prepare for interviews as well.

Ответить
Andrew Dunbar
Andrew Dunbar - 25.08.2023 17:25

Was es aussieht Was es aussieht parAmeter parAmeter

Ответить
Kernelpanic
Kernelpanic - 25.08.2023 03:23

Hey! can you share your green wallpaper?

Ответить
Abu Iman
Abu Iman - 06.08.2023 23:37

Perfect as usual, Philipp! I wish you a lot more subscribers! Keep sharing your knowledge please in a clear and understandable way! Danke😉

Ответить
Yt King Mubarak
Yt King Mubarak - 28.07.2023 10:05

waiting for 123K

Ответить
Diuliano Vargas da Silveira
Diuliano Vargas da Silveira - 19.07.2023 23:32

You're the goat i was having difficult in state management and your video clarify my mind, thanks

Ответить
DroidXperts
DroidXperts - 15.07.2023 17:35

Can you please explain the reason of getting dublicate class error? thanks

Ответить
Ashif Ali
Ashif Ali - 13.07.2023 15:15

You are great! I learn so much from you and still improving myself. I have a small request from you, Please create a playlist/single video for MVVM architecture with Retrofit API call. Also please make this with Activity & XML (don't use Jetpack Compose).

Ответить
masti437
masti437 - 08.07.2023 19:44

This man is soon to become the God of native android apps 🙂 Amazing content and best in the world

Ответить
Kanha
Kanha - 04.07.2023 15:43

a big thanks to all your efforts one day i will surely become a great android developer only because of you ❤

Ответить
نور الدين
نور الدين - 04.07.2023 10:59

thanks for great content 🙏🙏❤ ,

Ответить
Mark Sears
Mark Sears - 04.07.2023 08:51

What emulator do you use?

Ответить
braynM
braynM - 01.07.2023 17:50

I just want to thank you, I am learning a lot from your videos! Cheers!

Ответить
Mirco Dunker
Mirco Dunker - 29.06.2023 13:07

Thx for this great video.

Ответить
Khang Chow
Khang Chow - 27.06.2023 04:41

Hi sir, thanks for your helpful series. But I got one more question about the differences between MVP and MVVM, can you help me figure it out. Thankyou

Ответить
Roman Bielokon
Roman Bielokon - 27.06.2023 00:30

Android's ViewModel is not a VM from MVVM. It's just a container which allow to survive configuration changes.
Here is also what documentation stated: "The ViewModel class is a business logic or screen level state holder. " ... just a holder.
I can implement MVP in my app and use ViewModel as a container for a Presenter in order to survive configuration changes.

Ответить
Victor Farkas
Victor Farkas - 20.06.2023 18:11

sehr schön 👍aka very nice

Ответить
Alex Novikov
Alex Novikov - 20.06.2023 07:49

It's a very clear and detailed explanation as usual. Thank you!

Ответить
Владимир Галактионов
Владимир Галактионов - 19.06.2023 20:55

Thanks, you explain kotlin compose very well. There is little information at an advanced level in the Russian-speaking segment.

Ответить
Quick Sketch
Quick Sketch - 19.06.2023 20:18

Hi, I never know how to import viewModel. Using by viewmodels() is the newest way? What os the best way to use viewModel with XML. Do you have tutorials?

Ответить
Jishnu Goyal
Jishnu Goyal - 19.06.2023 18:59

Great series! Maybe you could include things like - this could be asked in an android interview and share some trick questions :)

Ответить
H4rtman
H4rtman - 19.06.2023 17:32

i don't understand why not to make UI actions update the model itself and vice versa.

Ответить
hanif marwat
hanif marwat - 19.06.2023 16:40

Should we use only one viewModel in whole app or create different viewModels for different purposes?

Ответить
Mateusz Karpiński
Mateusz Karpiński - 19.06.2023 16:25

Hello, can you make a wideo with istalation of Android studio and show how to config it, and what emulator you use ?

Ответить
Imamul Hasan Rana
Imamul Hasan Rana - 19.06.2023 10:00

Hi Philipp, Can You Also Make a Video About Repository And Data Classes? Would Be very Helpful

Ответить
Dïkėñ MhRź
Dïkėñ MhRź - 19.06.2023 06:54

if model layer is exposing a list of objects with epoch time, is it good to convert all of them to new object by parsing them to corresponding strings?.. If I follow this approach, I would have 4 data classes that represents the same data: dto, entity, model that repository exposes and model that is parsed for the view. Should I follow this approach?

Ответить
Mike
Mike - 19.06.2023 06:45

Videos like this are necessary for developers in any level, some times you need to know how a component really works and what its purpose is, in order to avoid bugs, performance issues and leaks.

Ответить
A
A - 19.06.2023 02:34

Thank you Philipp for all your work. You are really an inspiration for me as Android Developer and I've learned so much thanks to you 😊

Ответить
MATTEO
MATTEO - 19.06.2023 00:02

Perfect explanation, thanks Philipp

Ответить
Shri Ganapati Yoga
Shri Ganapati Yoga - 18.06.2023 21:41

thx a lot for this basics video!

Ответить
AMAL SHIWANTHA
AMAL SHIWANTHA - 18.06.2023 19:39

❤ good one

Ответить
Kaloyan Karaivanov
Kaloyan Karaivanov - 18.06.2023 19:20

I really liked that you explained in such great detail. When you don't use Dagger-Hilt, everything becomes clearer despite the boilerplate code. I had a lot of memory leak issues with Context 🎉

Ответить
meme_overflow
meme_overflow - 18.06.2023 18:31

Please make a video on how to make usecases for a complex app having many features
This series is gonna be very useful

Ответить
Marek Walica
Marek Walica - 18.06.2023 17:40

Very clearly explained. Thank you very much

Ответить
Rodrigo
Rodrigo - 18.06.2023 17:36

Congratulations Philipp. A simple question, can I work with WorkManager inside the ViewModel class?

Ответить
Iacov Colisnicenco
Iacov Colisnicenco - 18.06.2023 17:12

It's a cool explanation of MVVM, but what a pity I don't have enough money to buy your premium courses...

Ответить
Coding with Rizky Siregar
Coding with Rizky Siregar - 18.06.2023 15:19

cool bro

Ответить
Jagadeesh K
Jagadeesh K - 18.06.2023 15:09

The thumbnail is great 👍🏻👍🏻

Ответить
mckenyTech
mckenyTech - 18.06.2023 14:50

Thank you bro...was waiting on this to start using KMM...will this work for compose ios if I share the ui and the logics ?

Ответить
Jade
Jade - 18.06.2023 14:27

The GOAT ♥

Ответить
Yaakoub Hamad
Yaakoub Hamad - 18.06.2023 14:14

👌👌

Ответить