View Model | Live Data | Android Jetpack | Android Studio 3.1.2

  Рет қаралды 26,097

Mafia Codes

Mafia Codes

Күн бұрын

This is a very easy video about the introduction of view model and live data, which are a part of android jetpack library.
⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I've been using Kite for 6 months and I love it! www.kite.com/g...
FREE $100 credit @ Digital Ocean: m.do.co/c/3208...
GitHub: github.com/tru...
Starter project: github.com/tru...
VM & LD dependency: developer.andr...
Patreon: / trulymittal
Subscribe: www.youtube.co...
---------------
What I use
---------------
Mouse: amzn.to/2DZ4Hpm
Monitor: amzn.to/2DYT3ef
Processor: amzn.to/2UcTck6
RAM: amzn.to/2KQLYxL
Graphics: amzn.to/2BO9b0L
Microphone (Blue Snowball iCE): amzn.to/2zNV0ap
#yoursTruly #android #java #CSS #javascript #ES6 #html #ios #swift #nodejs #coding #programming #tutorial #howto #jetpack

Пікірлер: 111
@nihal999in
@nihal999in 4 жыл бұрын
You are awesome man.. love you.. the way you explain awesome.. please bring more and more videos on Android things . Hats off 👍👍👍
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share
@mohanavelk2724
@mohanavelk2724 3 жыл бұрын
Now asynctask and loader is deprecated, is there any method to handle background like asynctask ? Viewmodel and livedata is for loader what about async task ?
@nihal999in
@nihal999in 3 жыл бұрын
@@mohanavelk2724 yes yu can use coroutine and many others
@engincicek8882
@engincicek8882 3 жыл бұрын
@@mohanavelk2724 You can use Worker class
@M1A2_Abrams_MBT
@M1A2_Abrams_MBT 3 жыл бұрын
straight to the point and explained simply without nonsense. Great video.
@dalitsozulu3390
@dalitsozulu3390 3 жыл бұрын
Your explanation is very clear and easy to follow. Thank you Very much!!!!
@Androidify767
@Androidify767 4 жыл бұрын
this is by far the best LiveData / ViewModel tutorial I watched on KZbin! thanks a lot for your efforts :) would love to see more content from you :):)
@mafiacodes
@mafiacodes 4 жыл бұрын
Thank you 🙏🏻, subscribe like share...
@c-o-d-e2196
@c-o-d-e2196 6 жыл бұрын
Simple and to the point. Just what I needed. Thank. you!
@vinayTshetty
@vinayTshetty 2 жыл бұрын
Explained in a simple Manner loved it.
@nidhinjames8197
@nidhinjames8197 5 жыл бұрын
Nice video, it helped me a lot to understand the concept of Livedata. Please do a video of how to use LiveData and Retrofit together.
@chiragesehar8487
@chiragesehar8487 2 жыл бұрын
The way of delivering is awesome, stay blessed brother.
@belenignaciagonzalez3684
@belenignaciagonzalez3684 2 жыл бұрын
This is GOLD thanks for all!
@DesCodePro-programming
@DesCodePro-programming 2 жыл бұрын
Best Explanation so far
@dennisgonzales9521
@dennisgonzales9521 4 жыл бұрын
Finally someone explained view model and live data easily understand! Your's truly is an awesome channel ❣️
@mafiacodes
@mafiacodes 4 жыл бұрын
subscribe like share
@vinothkumar-hh4dv
@vinothkumar-hh4dv 5 жыл бұрын
Very clear to understand, If you can compare the volley and retrofit library usage will be more useful
@mafiacodes
@mafiacodes 5 жыл бұрын
SUBSCRIBE LIKE SHARE 😊 Actually thr is almost no comparison, always prefer to use retrofit, its better in all the cases.
@gibraanjafar1669
@gibraanjafar1669 3 жыл бұрын
Great content once again. Thanks for this wonderful, short and crisp video.
@emmanuelpregnolato5026
@emmanuelpregnolato5026 5 жыл бұрын
Simple and easy to grasp the concepts. Tx buddy!
@mafiacodes
@mafiacodes 5 жыл бұрын
Subscribe like share 😊
@sumanmainali8864
@sumanmainali8864 5 жыл бұрын
Your all video are so smooth and easy to follow
@mafiacodes
@mafiacodes 5 жыл бұрын
thanks bro, subscribe like share
@mohanavelk2724
@mohanavelk2724 3 жыл бұрын
Now asynctask and loader is deprecated, is there any method to handle background like asynctask ? Viewmodel and livedata is for loader what about async task ?
@sushantabhowmik6439
@sushantabhowmik6439 4 жыл бұрын
Nice to watch your video....crystal clear concept...
@vinodtechie6834
@vinodtechie6834 4 жыл бұрын
Clear and Stick to the topic. Brilliant
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share
@vikramsinghnegi1559
@vikramsinghnegi1559 4 жыл бұрын
Awesome video. You nailed it very well
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share ☺️
@jonathan3087
@jonathan3087 2 жыл бұрын
So easy to understand, when taught by you. Thanks! 💯🔥
@omleen3187
@omleen3187 5 жыл бұрын
Wow! Really like your straight-to-point explanation! Please keep it in Java. Not Kotlin cuz I hate Kotlin 😊
@mafiacodes
@mafiacodes 5 жыл бұрын
Subscribe like share 😊
@barenmandal127
@barenmandal127 6 жыл бұрын
thank u, your video really helpful. please make videos on rest of the Android Jetpack Components
@amenmoipushi8821
@amenmoipushi8821 4 жыл бұрын
Simple and straight forward ❤️❤️ does using a view model make Your app quicker as the calculations and everything else is done in the view model class?
@mafiacodes
@mafiacodes 4 жыл бұрын
Makes app more safe, no memory leaks, better organized
@mohanavelk2724
@mohanavelk2724 3 жыл бұрын
Now asynctask and loader is deprecated, is there any method to handle background like asynctask ? Viewmodel and livedata is for loader what about async task ?
@stevensonicteam
@stevensonicteam 3 жыл бұрын
Thank you so much for your explanation.
@moeenchanna9296
@moeenchanna9296 4 жыл бұрын
Work like a charm.
@engincicek8882
@engincicek8882 3 жыл бұрын
this is golden thank you so much
@agusrabini7886
@agusrabini7886 3 жыл бұрын
really good video. Congrats. Cheers from Argentina
@adnanhaider9949
@adnanhaider9949 4 жыл бұрын
your way of teaching is best and simple. can you make fragment with toolbar and tab layout and navigation drawer plz i need help. kindly give me list which topic i learn about all these concept to clear it. #admin
@mafiacodes
@mafiacodes 4 жыл бұрын
I’ll try
@jeduardofarias7448
@jeduardofarias7448 3 жыл бұрын
thank you so much, your video helped me a lot !!!
@mafiacodes
@mafiacodes 3 жыл бұрын
Glad it helped!
@carlosaavedra9862
@carlosaavedra9862 4 жыл бұрын
Incredible video, thanks man
@mafiacodes
@mafiacodes 4 жыл бұрын
Thanks 😊
@mohancena8970
@mohancena8970 3 жыл бұрын
I Appreciate your work brother keep rock 👏🙂
@ahmadfaraz3678
@ahmadfaraz3678 6 жыл бұрын
Font size is small. Try to increase it. Not properly visible on phone.
@keshavjha9835
@keshavjha9835 3 жыл бұрын
bro you deserve more subs
@mafiacodes
@mafiacodes 3 жыл бұрын
Thanks
@mukeshramharshyadav3255
@mukeshramharshyadav3255 4 жыл бұрын
Super job
@ahmada1629
@ahmada1629 6 жыл бұрын
God bless you my friend
@weikesandy556
@weikesandy556 2 жыл бұрын
so what is the difference between viewmodel and livedata in that app?
@vadakkanchottanikara
@vadakkanchottanikara 3 жыл бұрын
Great... bro I want view model more topic.
@mafiacodes
@mafiacodes 3 жыл бұрын
kzbin.info/aero/PLdHg5T0SNpN3-dPWdHlgu9lU3JnksBoHc
@vadakkanchottanikara
@vadakkanchottanikara 3 жыл бұрын
@@mafiacodes tks
@rajuyadav1221
@rajuyadav1221 5 жыл бұрын
Please continue with MVVM architecture
@mafiacodes
@mafiacodes 5 жыл бұрын
tell me which component you need, i will make a video for that 😉
@rajuyadav1221
@rajuyadav1221 5 жыл бұрын
@@mafiacodes Use of Retrofit with Rxjava in Mvvm. how to get response etc.
@mohanavelk2724
@mohanavelk2724 3 жыл бұрын
Now asynctask and loader is deprecated, is there any method to handle background like asynctask ? Viewmodel and livedata is for loader what about async task ?
@adiyogi-thefirstguru5144
@adiyogi-thefirstguru5144 5 жыл бұрын
Thanks bro
@junigates
@junigates 4 жыл бұрын
very very helpful bro thanks a lot
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share
@mohanavelk2724
@mohanavelk2724 3 жыл бұрын
Now asynctask and loader is deprecated, is there any method to handle background like asynctask ? Viewmodel and livedata is for loader what about async task ?
@codetheandroid
@codetheandroid 3 жыл бұрын
can we use long running background process like data fetching from api in this?/
@mafiacodes
@mafiacodes 3 жыл бұрын
yes
@abdremo
@abdremo 4 жыл бұрын
Thank you bro Please I’ve a question
@mafiacodes
@mafiacodes 4 жыл бұрын
And wats that
@4jilson
@4jilson 5 жыл бұрын
Your Tutorial is good, Subscribed to this channel.
@nikhilguptha1482
@nikhilguptha1482 4 жыл бұрын
Can u make a video using api with data binding concept
@mafiacodes
@mafiacodes 4 жыл бұрын
Wait for the upcoming series on mvvm, that exact concept is used there
@ritunjaykumar5428
@ritunjaykumar5428 4 жыл бұрын
Sir, please made videos on android animation.
@mafiacodes
@mafiacodes 4 жыл бұрын
I already have...watch these: kzbin.info/www/bejne/fZmWfKaEfL-gl6c kzbin.info/www/bejne/nISnY6qXbZaYrKM kzbin.info/www/bejne/jHmQYmpvqdl1pq8
@ritunjaykumar5428
@ritunjaykumar5428 4 жыл бұрын
@@mafiacodes thank you sir for replying. Is it full video of animation??
@mafiacodes
@mafiacodes 4 жыл бұрын
Yes
@codetheandroid
@codetheandroid 3 жыл бұрын
is viewmodel live data run on background thread ... i want to use it for background processs
@TheAbhidugar
@TheAbhidugar 3 жыл бұрын
hello, thanks for your videos. I am learning android for past three months now. I am getting very frustrated because all I am doing is copying and pasting. If someone asks me to create things on my own, I cannot. Please guide me what I am doing wrong, what should I do ? It is taking me so much time and I really need a job now. I understand the things which come in the way (by reading articles or watching YT videos) but could not write anything new on my own. Started learning from Udacity free courses. I still cannot code myself when new classes (APIs or android frameworks) are to be used. I hope I am able to tell my situation properly. Please help me.
@mafiacodes
@mafiacodes 3 жыл бұрын
The best resource is android documentation, you can learn many things about android using that. You can watch my android playlist as well. As for new thing on your own, you need to first chalk out that what you wanna do, and then piece by piece learn about that stuff and code it. Its not like that you need to learn the FULL android framework to make an app.
@timepass3821
@timepass3821 3 жыл бұрын
Great 👍
@sanjaytanti3085
@sanjaytanti3085 3 жыл бұрын
Thanks
@rdyrodney
@rdyrodney 3 жыл бұрын
Muito bom 🇧🇷🇧🇷
@mafiacodes
@mafiacodes 3 жыл бұрын
Thank you
@techbrainz
@techbrainz 4 жыл бұрын
in fragment live data is first time only getting fired 2 nd time onwards not getting fierd i am using room db with that live data
@mafiacodes
@mafiacodes 4 жыл бұрын
Share code on github for me to check. Subscribe like share ☺️
@sumanmainali8864
@sumanmainali8864 5 жыл бұрын
Sir so view model and Live data does the same thing.so which one is best
@mafiacodes
@mafiacodes 5 жыл бұрын
They are not the same thing, you watch the video again dont skip and see the difference, Subscribe like share
@weikesandy556
@weikesandy556 2 жыл бұрын
@@mafiacodes they do the same thing. just add score and not lose that number while landscape
@mohanavelk2724
@mohanavelk2724 3 жыл бұрын
I've learned async loader but it is deprecated for that can I use Viewmodel and Live data?
@mafiacodes
@mafiacodes 3 жыл бұрын
yes u can
@mohanavelk2724
@mohanavelk2724 3 жыл бұрын
@@mafiacodes Now asynctask and loader is deprecated, is there any method to handle background like asynctask ? Viewmodel and livedata is for loader or asynctask?
@anmolneema93
@anmolneema93 5 жыл бұрын
Nice
@muhannddh
@muhannddh 4 жыл бұрын
Can I use viewmodel to pass data from dialogfragment to Fragments and Activities
@mafiacodes
@mafiacodes 4 жыл бұрын
Yes you can.
@Arunkumar-xf1hd
@Arunkumar-xf1hd 3 жыл бұрын
watching this at 12:30am
@techbrainz
@techbrainz 4 жыл бұрын
Sir i have doubt how to use viewbinding with MVVM concept small example sir please
@mafiacodes
@mafiacodes 4 жыл бұрын
View binding is nothing it’s just a replace of findviewbyid, it has nothing to do with mvvm, just use the generated classes in the typical way. Watch this RecyclerView with ViewBinding kzbin.info/www/bejne/ZmXPZKl3h5l8eKc If you don’t know viewbinding then watch this View Binding kzbin.info/www/bejne/b3jEYp-QYr2haJY
@techbrainz
@techbrainz 4 жыл бұрын
@@mafiacodes sir i had simple webview in activity for that activity i had one ViewModel class but if i rotate screen data is reloading again
@mafiacodes
@mafiacodes 4 жыл бұрын
Share code on GitHub
@techbrainz
@techbrainz 4 жыл бұрын
@@mafiacodes github.com/vamsireddytalla/MorningNewsPaper This is the code sir i had viewmodel with webview when i rotate screen orientation webview is again reloading please help me sir i want where the page is shown on last
@techbrainz
@techbrainz 4 жыл бұрын
@@mafiacodes sir waiting for ur reply i given git hub url
@elyu_vibes
@elyu_vibes 4 жыл бұрын
Isn't ViewModelProviders deprecated now?
@mafiacodes
@mafiacodes 4 жыл бұрын
Yes, u shud use new ViewModelProvider()
@mohanavelk2724
@mohanavelk2724 3 жыл бұрын
Now asynctask and loader is deprecated, is there any method to handle background like asynctask ? Viewmodel and livedata is for loader what about async task ?
@jitendrachouhan7024
@jitendrachouhan7024 3 жыл бұрын
Make stories application
Text Appearance | Android Studio 3.1.2
6:13
Mafia Codes
Рет қаралды 2,8 М.
AsyncTasks | What When How in Android
16:59
Mafia Codes
Рет қаралды 18 М.
Un coup venu de l’espace 😂😂😂
00:19
Nicocapone
Рет қаралды 5 МЛН
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 28 МЛН
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 2,4 МЛН
Spongebob ate Michael Jackson 😱 #meme #spongebob #gmod
00:14
Mr. LoLo
Рет қаралды 11 МЛН
How to Start Game Development
10:48
QuestUp Game Development
Рет қаралды 18
Collapsing Toolbar Layout | Android Studio 3.1.2
10:31
Mafia Codes
Рет қаралды 35 М.
LiveData Explained - Android Architecture Component | Tutorial
12:12
Recycler View with complete explanation | Android
24:56
Mafia Codes
Рет қаралды 41 М.
Un coup venu de l’espace 😂😂😂
00:19
Nicocapone
Рет қаралды 5 МЛН