Android ViewModel Tutorial| Android Jetpack Components Hindi- CheezyCode #3

  Рет қаралды 58,087

Cheezy Code

Cheezy Code

Күн бұрын

Пікірлер: 103
@be_like__prateek
@be_like__prateek 3 жыл бұрын
Found your channel very late i.e. today. Had missed many deep concepts. Thanks!
@nitunsingh6986
@nitunsingh6986 3 жыл бұрын
Great explanation,I literally missed very interesting concepts but now m feeling comfortable. Thanks Alot sir for such a beautiful content
@sanitbandekar
@sanitbandekar 3 жыл бұрын
Bro aapki videos bahut help full hai plz aap jaldi upload kare mujhe MVVM sikna hai, I know it's take too much time to make,
@rahulraina689
@rahulraina689 11 ай бұрын
Best tutorial video approach. Short and specific video for one topic
@mohammadabbasabidi
@mohammadabbasabidi 6 ай бұрын
Cheezycode as usual best at teaching. Thanks mate
@dumbxyz
@dumbxyz 3 жыл бұрын
WOW. Lovely. I'm reading a book on android and everything that seems confusing, I rush to your yt channel and almost everytime the concepts get cleared thru your videos! Love and Respect from Pakistan ❤️
@afaaqahmed1697
@afaaqahmed1697 3 жыл бұрын
Which book dear bro???
@dumbxyz
@dumbxyz 3 жыл бұрын
@@afaaqahmed1697 The Big Nerd Ranch Guide to Android Programming 4e
@chndraja
@chndraja 3 жыл бұрын
I'm a web dev.. trying to understand android concepts.. your videos helped me a lot... That you so much.. ☺️☺️👍👍👍👌
@CheezyCode
@CheezyCode 3 жыл бұрын
Thank you Chandra...request to you - help us reach more people 🤘
@chetantailor3620
@chetantailor3620 3 жыл бұрын
You are the great tutor...
@peyushk
@peyushk 2 жыл бұрын
Good Tutorials !! Please make compose UI tutorials also soon !!
@nitingupta0805
@nitingupta0805 Жыл бұрын
Lots of thanks and gratitude Sir.
@FaisarKhan-nv7fo
@FaisarKhan-nv7fo 2 ай бұрын
Love You Sir ❤
@yashkumar9501
@yashkumar9501 3 жыл бұрын
Thank you sir for awesome tutorials
@CheezyCode
@CheezyCode 3 жыл бұрын
Thank you Yash❤️
@Ari-118
@Ari-118 3 жыл бұрын
Thank you so much man for making this great video. I appreciate your work.
@puneetchhabra2578
@puneetchhabra2578 Жыл бұрын
very mast explaination!
@siddharthyadav001
@siddharthyadav001 Жыл бұрын
Great 👌👌
@vivekonmyway8826
@vivekonmyway8826 3 жыл бұрын
That's what I am writing for ❤️❤️❤️
@CheezyCode
@CheezyCode 3 жыл бұрын
Thanks Vivek..keep loving ❤️
@rushikeshthak2874
@rushikeshthak2874 3 жыл бұрын
Fantastic.... Nicely explained... Actually what's view model how it works....this concept is cleared.👍... Sir one request is can u make video on how to use view model with volley or retrofit.
@CheezyCode
@CheezyCode 3 жыл бұрын
Next wohi planned hai...pehle diffutil dekh ke fir aage retrofit aur paging
@fffooccc9801
@fffooccc9801 Жыл бұрын
@@CheezyCode please bring a playlist on external and internal storage in android system
@shubhamthorat1134
@shubhamthorat1134 2 жыл бұрын
Simply awesome ⭐⭐⭐
@CheezyCode
@CheezyCode 2 жыл бұрын
Thanks 😊
@smartdeveloper1627
@smartdeveloper1627 3 жыл бұрын
Very nice tutorial :) waiting for next video
@CheezyCode
@CheezyCode 3 жыл бұрын
Thank you! Cheers!
@divyayash5858
@divyayash5858 2 жыл бұрын
Excellent explanation!
@CheezyCode
@CheezyCode 2 жыл бұрын
Thanks Divya
@knowledge4win382
@knowledge4win382 Жыл бұрын
Thank You so much sir
@AshishGautam-sy3vm
@AshishGautam-sy3vm 2 жыл бұрын
Nice Explanation ..
@CheezyCode
@CheezyCode 2 жыл бұрын
Thanks and welcome
@knowledge4win382
@knowledge4win382 Жыл бұрын
Sir aapne kya koi paid course launch Kiya hai sir hame aap se sikhna hai full app development
@sanikumarpal2366
@sanikumarpal2366 3 жыл бұрын
Great Explanation sir
@CheezyCode
@CheezyCode 3 жыл бұрын
Thanks Sanikumar 👍
@sat_talk
@sat_talk 3 жыл бұрын
Great video as always..
@CheezyCode
@CheezyCode 3 жыл бұрын
Thanks again ❤️!
@EducationSimplified
@EducationSimplified 3 жыл бұрын
Colon colon class.java @7:06, what kind of a reference it yields, double colon, Please answer I’m 34 year old beginner.
@CheezyCode
@CheezyCode 3 жыл бұрын
This lets you access the type i.e. your class which is then used to create the instance of that type at runtime. This comes under reflection where at runtime you inspect the internals of a class like it's properties and methods.
@sunilnraikar410
@sunilnraikar410 3 жыл бұрын
Thanks
@nimesh519
@nimesh519 2 жыл бұрын
nic explaination
@samarthsevak6718
@samarthsevak6718 2 жыл бұрын
Ending sound track is awesome... can anyone share me the link for the same.
@wolf-splay4956
@wolf-splay4956 9 ай бұрын
Sir Please create a video where frontend in jetpack compose kotlin and backend in node js
@arpitkanda3487
@arpitkanda3487 3 жыл бұрын
Rx java pr bhi video banye sir simple explaination k sath🙏
@mohitkaranjawala7664
@mohitkaranjawala7664 2 жыл бұрын
sir i want to ask one question when previous activity method onDestroy() is called then how viewmodel is retained why not destroyed.
@CheezyCode
@CheezyCode 2 жыл бұрын
Activity ke onDestroy pe ViewModel destroy hoga...retain sirf configuration change pe hoga viewmodel
@PulkitMalhotra
@PulkitMalhotra Жыл бұрын
5:07 sir ye shortcut konsa hai. Kya shortcut key use kri
@CheezyCode
@CheezyCode Жыл бұрын
Press shift twice
@sarabjeetsinghhora7751
@sarabjeetsinghhora7751 2 жыл бұрын
Beautiful
@CheezyCode
@CheezyCode 2 жыл бұрын
Thanks Sarabjeet
@macros3798
@macros3798 3 жыл бұрын
Amazing video
@CheezyCode
@CheezyCode 3 жыл бұрын
Thank you ❤️
@macros3798
@macros3798 3 жыл бұрын
Sir upka koi video mis nahi karte, kiu ki bohot hi a6a content late ho. But mera ek request hai is series k liya, pehele koilin fir uske ugle din java. Isse hume our v a6a se sikne ko milain ge our asani hogi samaj ne m. Pls kosis kare sir issy dono ko fida hogi jo kotlin sik na chate ho our jo kotlin ko samaj na chahate ho our jo java se kotlin m jana chahate ho. Upka kotlin wala series a6a tha but muje lagta hai is series comparison hogi too samajne m our v asani hogi. Pls karenge na sir.
@SCRETBRO
@SCRETBRO 3 жыл бұрын
Thank You.
@CheezyCode
@CheezyCode 3 жыл бұрын
You're welcome King ❤️
@arpitkhandelwal2999
@arpitkhandelwal2999 3 жыл бұрын
Sir view model toh smj aa gya aache s but I think mvvm pattern hardly 3-4 years s use ho rha hai ,,,, Usse phle yeh waali problem ni aati thi (orientation) wali Muje jyda pta ni h is baare m Curious to learn 😂
@MuhammadNaveed2016
@MuhammadNaveed2016 3 жыл бұрын
for every activity and fragment should i have new viewModel.
@CheezyCode
@CheezyCode 3 жыл бұрын
Generally ab fragments he use karte hai...and generally 1 fragment ke liye 1 ViewModel banate h..but totally depends on the scenario....
@MuhammadNaveed2016
@MuhammadNaveed2016 3 жыл бұрын
@@CheezyCode Thanks for guide
@hardcodeandroid
@hardcodeandroid 3 жыл бұрын
Thanks sir
@CheezyCode
@CheezyCode 3 жыл бұрын
Welcome ❤️
@vishalgopalrao8834
@vishalgopalrao8834 3 жыл бұрын
hi can you suggest Video, Music Copyrights check API, or SDK available for android? Thank you in advance
@CheezyCode
@CheezyCode 3 жыл бұрын
No idea about that
@sagaraghara9754
@sagaraghara9754 3 жыл бұрын
Sir you have World top knowledge as per my opinion, Great video & Explanation, Really very appreciate Subscribed 🙏👍. And sir 1 Que tha ki, (MainViewModel::class.java) esa kyu likhte he? I mean Kotlin he to Java kyu aaya Last me? Mene aapki Beginner Kotlin Series bhi Complete dekhi, but ye JAVA likha wo kahi nai mila, so Plz sir tell me at your time, Thank you 👍
@CheezyCode
@CheezyCode 3 жыл бұрын
Runtime pe class ka object banana hai...compiled bytecode java ka hai isliye ::java
@sagaraghara9754
@sagaraghara9754 3 жыл бұрын
@@CheezyCode Ok understood, Thank you sir 👍
@Sikarwar0020
@Sikarwar0020 3 жыл бұрын
Sir kitni videos aayengi iss playlist pr..
@CheezyCode
@CheezyCode 3 жыл бұрын
lage rahenge iss baari rukenge nahi...abhi rukna mana hai....
@Sikarwar0020
@Sikarwar0020 3 жыл бұрын
@@CheezyCode ham bhi nhi rukenge sab kuch seekhenge
@kishorramani007
@kishorramani007 3 жыл бұрын
In diagram, why onDestroy is called while screen rotate?
@CheezyCode
@CheezyCode 3 жыл бұрын
Activity is destroyed and then re-created
@sangitaangbo4471
@sangitaangbo4471 2 жыл бұрын
# view is to show data and viewModel is to store data.
@CheezyCode
@CheezyCode 2 жыл бұрын
model class for view is viewmodel
@satyamiov3791
@satyamiov3791 Жыл бұрын
1 video = 1 topic finish
@rohitjakhar6672
@rohitjakhar6672 3 жыл бұрын
आज समझ आया view model का मतलब
@RohanKumar-zn4qg
@RohanKumar-zn4qg 3 жыл бұрын
Question- viewModel is defined in onCreate() of MainActivity.kt, and onCreate() of MainActivity runs several times. So will there be new viewModel instance assigned every time onCreate() is called? If not then why? Because onCreate() will execute the statement viewModel=ViewModelProvider..... every time onCreate() is called.
@CheezyCode
@CheezyCode 3 жыл бұрын
Question mei he hai answer...viewmodel kaise get kar rahe ho? Instance khud se create kar rahe ho ya viewmodelprovider ki help se milta hai instance
@RohanKumar-zn4qg
@RohanKumar-zn4qg 3 жыл бұрын
mtlb constructor se initialise krenge to har baar bnega aur ViewModelProvider se krenge to wo check krega aur agar pehle se bna hoga to nhi bnayega?
@RohanKumar-zn4qg
@RohanKumar-zn4qg 3 жыл бұрын
Can you please make videos for explaining things like context,requireActivity,requireArguments, compatContext, by viewModels(), by lazy{...} etc
@sharanpreetchadha5281
@sharanpreetchadha5281 2 жыл бұрын
@@RohanKumar-zn4qg Instance toh baar baar ni bnega when onCreate use krenge toh ig har baar shayad call ho
@milangajera2129
@milangajera2129 2 жыл бұрын
Hello Sir, When we create an instance of the ViewModel in an Activity we passed this. Here This is the refers to the current class object or variable it means an activity class. When during the configuration chagnes our activity onDestory() and onCreate() happens. then How ViewModel survives the configuration changes. Here this means out activity destroy there is no longer visible. If we pass this Why ViewModel not destroyed? What is the meaning of passing this while we creating an instance of the ViewModel in an Activity? Could you please give me a good explanation with practical cases?
@CheezyCode
@CheezyCode 2 жыл бұрын
Good question. There is a dictionary that it maintains to keep track of the objects of viewmodel. This is the main reason why we do not create viewmodel objects ourselves, we ask ViewModelProvider class to provide the instance of viewmodel. ViewModelStore is the class that helps implement the dictionary using HashMap. 'this' - is used to define the key in the dictionary. So after configuration change, you pass the key that will help ViewModelProvider class to return the same instance if it exists. Hope this helps.
@milangajera2129
@milangajera2129 2 жыл бұрын
@@CheezyCode Thank you sir for more clarification on my question.
@Erwinsmith94040
@Erwinsmith94040 3 жыл бұрын
Sir in my another project rotation se view bhi change ho rhe hai how to solve this issue pls reply!! is viewmodel solve this issue or i need to use different library pls reply sir bohot dino se search kr rha hua solve nahi ho rha??
@CheezyCode
@CheezyCode 3 жыл бұрын
Layout folder mei landscape ke liye layout defined h?
@Erwinsmith94040
@Erwinsmith94040 3 жыл бұрын
@@CheezyCode sir i am making my project there is this type of problem comes?? What i do??
@CheezyCode
@CheezyCode 3 жыл бұрын
ViewModel is for data only. View change ho raha that means you have another layout for landscape mode
@Erwinsmith94040
@Erwinsmith94040 3 жыл бұрын
@@CheezyCode sir in my project views reset ho rhe hai by rotating. I can solve this problem by rotation lock kr ke but that is not good way to solve this problem sir pls help me!!
@Erwinsmith94040
@Erwinsmith94040 3 жыл бұрын
@@CheezyCode sir single layout hai but animation type project hai jo on process rotate karne se restart ho rha hai i read lot of articles for this issue but nothing helpful 😥
@courtniallison7473
@courtniallison7473 3 жыл бұрын
extension make in mit
@priyamprakash1209
@priyamprakash1209 3 жыл бұрын
Can you share the PPT ?
@CheezyCode
@CheezyCode 3 жыл бұрын
dhundhta hu - mili toh will upload it on cheezycode.com
@PreetiKumari441
@PreetiKumari441 2 жыл бұрын
Could you share the source code
@CheezyCode
@CheezyCode 2 жыл бұрын
Last video
@PreetiKumari441
@PreetiKumari441 2 жыл бұрын
@@CheezyCode Sorry but i want code of this video only specially, activity_main.xml
@CheezyCode
@CheezyCode 2 жыл бұрын
github.com/CheezyCode/RandomQuote
@nayannit
@nayannit 3 жыл бұрын
The soundtrack in the end.. 😂
@courtniallison7473
@courtniallison7473 3 жыл бұрын
kodular app make
@reznov.21
@reznov.21 8 ай бұрын
Thank you so much sir
@naimeimran3247
@naimeimran3247 3 жыл бұрын
Thanks Sir
Как Ходили родители в ШКОЛУ!
0:49
Family Box
Рет қаралды 2,3 МЛН
I've Used Jetpack Compose For 4 Years - Here's the Good and the Bad
16:12
ViewModels & Configuration Changes - Android Basics 2023
18:46
Philipp Lackner
Рет қаралды 143 М.
Should You Use Compose State or StateFlow in Your ViewModels?
13:59
Philipp Lackner
Рет қаралды 85 М.
ViewModel Explained - Android Architecture Component | Tutorial
8:27