No video

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

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

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.
@DesCodePro-programming
@DesCodePro-programming 2 жыл бұрын
Best Explanation so far
@belenignaciagonzalez3684
@belenignaciagonzalez3684 2 жыл бұрын
This is GOLD thanks for all!
@vinayTshetty
@vinayTshetty 2 жыл бұрын
Explained in a simple Manner loved it.
@chiragesehar8487
@chiragesehar8487 2 жыл бұрын
The way of delivering is awesome, stay blessed brother.
@Androidify767
@Androidify767 4 жыл бұрын
this is by far the best LiveData / ViewModel tutorial I watched on KZfaq! thanks a lot for your efforts :) would love to see more content from you :):)
@mafiacodes
@mafiacodes 4 жыл бұрын
Thank you 🙏🏻, subscribe like share...
@dalitsozulu3390
@dalitsozulu3390 3 жыл бұрын
Your explanation is very clear and easy to follow. Thank you Very much!!!!
@c-o-d-e2196
@c-o-d-e2196 5 жыл бұрын
Simple and to the point. Just what I needed. Thank. you!
@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.
@gibraanjafar1669
@gibraanjafar1669 3 жыл бұрын
Great content once again. Thanks for this wonderful, short and crisp video.
@emmanuelpregnolato5026
@emmanuelpregnolato5026 4 жыл бұрын
Simple and easy to grasp the concepts. Tx buddy!
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share 😊
@vinodtechie6834
@vinodtechie6834 4 жыл бұрын
Clear and Stick to the topic. Brilliant
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share
@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
@moeenchanna9296
@moeenchanna9296 4 жыл бұрын
Work like a charm.
@sumanmainali8864
@sumanmainali8864 4 жыл бұрын
Your all video are so smooth and easy to follow
@mafiacodes
@mafiacodes 4 жыл бұрын
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 ?
@vikramsinghnegi1559
@vikramsinghnegi1559 4 жыл бұрын
Awesome video. You nailed it very well
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share ☺️
@sushantabhowmik6439
@sushantabhowmik6439 4 жыл бұрын
Nice to watch your video....crystal clear concept...
@jonathan3087
@jonathan3087 2 жыл бұрын
So easy to understand, when taught by you. Thanks! 💯🔥
@agusrabini7886
@agusrabini7886 3 жыл бұрын
really good video. Congrats. Cheers from Argentina
@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.
@stevensonicteam
@stevensonicteam 3 жыл бұрын
Thank you so much for your explanation.
@engincicek8882
@engincicek8882 3 жыл бұрын
this is golden thank you so much
@jeduardofarias7448
@jeduardofarias7448 3 жыл бұрын
thank you so much, your video helped me a lot !!!
@mafiacodes
@mafiacodes 3 жыл бұрын
Glad it helped!
@omleen3187
@omleen3187 4 жыл бұрын
Wow! Really like your straight-to-point explanation! Please keep it in Java. Not Kotlin cuz I hate Kotlin 😊
@mafiacodes
@mafiacodes 4 жыл бұрын
Subscribe like share 😊
@barenmandal127
@barenmandal127 5 жыл бұрын
thank u, your video really helpful. please make videos on rest of the Android Jetpack Components
@mohancena8970
@mohancena8970 3 жыл бұрын
I Appreciate your work brother keep rock 👏🙂
@carlosaavedra9862
@carlosaavedra9862 4 жыл бұрын
Incredible video, thanks man
@mafiacodes
@mafiacodes 4 жыл бұрын
Thanks 😊
@adnanhaider9949
@adnanhaider9949 3 жыл бұрын
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 3 жыл бұрын
I’ll try
@keshavjha9835
@keshavjha9835 3 жыл бұрын
bro you deserve more subs
@mafiacodes
@mafiacodes 3 жыл бұрын
Thanks
@mukeshramharshyadav3255
@mukeshramharshyadav3255 4 жыл бұрын
Super job
@ahmada1629
@ahmada1629 5 жыл бұрын
God bless you my friend
@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 ?
@Arunkumar-xf1hd
@Arunkumar-xf1hd 3 жыл бұрын
watching this at 12:30am
@weikesandy556
@weikesandy556 2 жыл бұрын
so what is the difference between viewmodel and livedata in that app?
@vadakkanchottanikara6587
@vadakkanchottanikara6587 3 жыл бұрын
Great... bro I want view model more topic.
@mafiacodes
@mafiacodes 3 жыл бұрын
kzfaq.info/sun/PLdHg5T0SNpN3-dPWdHlgu9lU3JnksBoHc
@vadakkanchottanikara6587
@vadakkanchottanikara6587 3 жыл бұрын
@@mafiacodes tks
@timepass3821
@timepass3821 3 жыл бұрын
Great 👍
@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 ?
@sanjaytanti3085
@sanjaytanti3085 2 жыл бұрын
Thanks
@ahmadfaraz3678
@ahmadfaraz3678 6 жыл бұрын
Font size is small. Try to increase it. Not properly visible on phone.
@codetheandroid
@codetheandroid 2 жыл бұрын
can we use long running background process like data fetching from api in this?/
@mafiacodes
@mafiacodes 2 жыл бұрын
yes
@codetheandroid
@codetheandroid 2 жыл бұрын
is viewmodel live data run on background thread ... i want to use it for background processs
@adiyogi-thefirstguru5144
@adiyogi-thefirstguru5144 5 жыл бұрын
Thanks bro
@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
@rdyrodney
@rdyrodney 3 жыл бұрын
Muito bom 🇧🇷🇧🇷
@mafiacodes
@mafiacodes 3 жыл бұрын
Thank you
@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.
@ritunjaykumar5428
@ritunjaykumar5428 4 жыл бұрын
Sir, please made videos on android animation.
@mafiacodes
@mafiacodes 4 жыл бұрын
I already have...watch these: kzfaq.info/get/bejne/fc5jftZ_rMDRkXk.html kzfaq.info/get/bejne/nLl0ZdqSnZfJpnU.html kzfaq.info/get/bejne/jK5dZJpq2dqmoIE.html
@ritunjaykumar5428
@ritunjaykumar5428 4 жыл бұрын
@@mafiacodes thank you sir for replying. Is it full video of animation??
@mafiacodes
@mafiacodes 4 жыл бұрын
Yes
@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 ?
@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 ☺️
@abdremo
@abdremo 4 жыл бұрын
Thank you bro Please I’ve a question
@mafiacodes
@mafiacodes 4 жыл бұрын
And wats that
@anmolneema93
@anmolneema93 5 жыл бұрын
Nice
@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?
@muhannddh
@muhannddh 4 жыл бұрын
Can I use viewmodel to pass data from dialogfragment to Fragments and Activities
@mafiacodes
@mafiacodes 4 жыл бұрын
Yes you can.
@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 kzfaq.info/get/bejne/ZpqcZtlyt5qtcnk.html If you don’t know viewbinding then watch this View Binding kzfaq.info/get/bejne/b62RZM-Lkr7SYmg.html
@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 ?
@sumanmainali8864
@sumanmainali8864 4 жыл бұрын
Sir so view model and Live data does the same thing.so which one is best
@mafiacodes
@mafiacodes 4 жыл бұрын
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
@jitendrachouhan7024
@jitendrachouhan7024 3 жыл бұрын
Make stories application
Text Appearance | Android Studio 3.1.2
6:13
Mafia Codes
Рет қаралды 2,8 М.
Navigation Component | Android Jetpack | Android
17:26
Mafia Codes
Рет қаралды 49 М.
Fortunately, Ultraman protects me  #shorts #ultraman #ultramantiga #liveaction
00:10
Ik Heb Aardbeien Gemaakt Van Kip🍓🐔😋
00:41
Cool Tool SHORTS Netherlands
Рет қаралды 4,4 МЛН
Harley Quinn's plan for revenge!!!#Harley Quinn #joker
00:49
Harley Quinn with the Joker
Рет қаралды 32 МЛН
Prank vs Prank #shorts
00:28
Mr DegrEE
Рет қаралды 6 МЛН
MVVM vs. MVI - Understand the Difference Once and for All
18:40
Philipp Lackner
Рет қаралды 38 М.
Recycler View with complete explanation | Android
24:56
Mafia Codes
Рет қаралды 41 М.
Fun with LiveData (Android Dev Summit '18)
19:20
Android Developers
Рет қаралды 103 М.
Collapsing Toolbar Layout | Android Studio 3.1.2
10:31
Mafia Codes
Рет қаралды 35 М.
AsyncTasks | What When How in Android
16:59
Mafia Codes
Рет қаралды 18 М.
Android Data Binding: Getting Started
46:04
CodingWithMitch
Рет қаралды 97 М.
LiveData Explained - Android Architecture Component | Tutorial
12:12
Fortunately, Ultraman protects me  #shorts #ultraman #ultramantiga #liveaction
00:10