LiveData Explained - Android Architecture Component | Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ต.ค. 2024

ความคิดเห็น • 66

  • @nathann4291
    @nathann4291 3 ปีที่แล้ว +37

    I really like your style of teaching, to the point, and no fluff, looking forward to more Android courses.

  • @khaxbiker
    @khaxbiker 4 ปีที่แล้ว +12

    This is the second of your videos from your channel where I learn a lot. You made them simple but very effectively to learn and replicate. It´s very easy to understand the concepts with your videos. Thanks a lot for your work. I hope you keep going on with this great job

  • @nomonade
    @nomonade 3 ปีที่แล้ว +7

    nice explanation, thanks. There's one thing I did not understand though: why did you set timerValue (8:30) to a LiveData instead of a normal variable? What is the difference in this case?

  • @vdrmkr
    @vdrmkr 2 ปีที่แล้ว

    why not val seconds: LiveData get() = _seconds ??

  • @MateusMeurer
    @MateusMeurer 3 ปีที่แล้ว +1

    Bro you're one of the best teachers in youtube. Thank you

    • @StevdzaSan
      @StevdzaSan  3 ปีที่แล้ว

      Glad to help 👍💜

  • @rasulbekabdurasulov7219
    @rasulbekabdurasulov7219 3 ปีที่แล้ว +2

    Very informative, especially for beginners. Everything is clear, thank you a lot, and please keep going

  • @blattwald7650
    @blattwald7650 3 ปีที่แล้ว

    I have to increase my intake on energy drinks to keep up with your whirlwind-style of running through this lesson. Awesome.

  • @abhishek2107
    @abhishek2107 3 ปีที่แล้ว

    this dude is fab . great teaching style and the way he explain deserves a subsribe

  • @andy_de2041
    @andy_de2041 4 ปีที่แล้ว +5

    I've never seen Kotlin. I'm going to watch some new courses, it looks awesome. Now I'll forget the Java and python I know. Gotta go back to taking notes

  • @danishajaib1923
    @danishajaib1923 4 ปีที่แล้ว +1

    Your videos are pretty good mate.. Quick and to the point. This helped me a lot ...Thanks .

  • @saramohmad4014
    @saramohmad4014 2 ปีที่แล้ว

    thank you very much i stuck in this subject but you explain it very well
    thank you again

  • @JustFlyIt09
    @JustFlyIt09 ปีที่แล้ว

    What a great video...just the right about of info for the topic. Clear and concise too. Thanks!

  • @vanilla03034
    @vanilla03034 4 ปีที่แล้ว +2

    this video helped me a lot. what a detailed & easy explanation !

  • @alishanvaliani9952
    @alishanvaliani9952 3 ปีที่แล้ว +1

    Thanks bro ! You are real cool ! Keep doing ! You are the best!

  • @lucye7320
    @lucye7320 4 ปีที่แล้ว +1

    Super super helpful! Really great explanations. Thank you!

  • @pradeep9222
    @pradeep9222 3 ปีที่แล้ว

    you make it easy to understand, thank you again

  • @thkorkem
    @thkorkem 3 ปีที่แล้ว +1

    Useful and concise explanation, thanks man!

  • @mrandroid6764
    @mrandroid6764 4 ปีที่แล้ว

    Love you man..... you are an excellent programmer

  • @sayanthss5793
    @sayanthss5793 4 หลายเดือนก่อน

    well explained the concept. thanks☺

  • @sebastianpalm3495
    @sebastianpalm3495 3 ปีที่แล้ว

    Amazing video, big fan!. One question how do you handle the multiple calls from live data with onChange?

  • @anonymouspanda689
    @anonymouspanda689 4 ปีที่แล้ว +1

    Wow! This is an awesome explanation! I also had another question. I am trying to make an application that has a home screen which doesn't show the nav bar. Then, the next fragment (navigated to by a button) has a back arrow. When I press it, it does an animation, which means that you can see the app adjust to the nav bar not showing. Is there a way to remove the animation so it doesn't add/remove the nav bar right in a visible way? I also had another question (sorry for all the questions). Is there a way to add a camera and take pictures in your app? And access the photo library. Thanks again for all the help that you have been doing. You are so kind by making these videos for other android developers like me!

  • @ariel10aguero
    @ariel10aguero 4 ปีที่แล้ว +1

    Thank you! this is so helpful, just a short question. How do you check if the countdown already started? because if you press start several times it will start over and over again showing all the seconds left in the same time. Keep making videos, the channel is amazing!

    • @web3z161
      @web3z161 4 ปีที่แล้ว +1

      use an if statement with a boolean value such as count_down_started and code accordingly.

    • @ariel10aguero
      @ariel10aguero 4 ปีที่แล้ว

      @@web3z161 thanks!

  • @Alfrednohike9909
    @Alfrednohike9909 3 ปีที่แล้ว

    Can I use a value of MutableLiveData and a normal Int? Like can I sum these 2 values or I must do some type casting!

    • @StevdzaSan
      @StevdzaSan  3 ปีที่แล้ว

      Sure you can. 👍

  • @peyvandjadidi4395
    @peyvandjadidi4395 2 ปีที่แล้ว

    this video helped me so much 🥰 your speech was clear and understandable , thank you ❤

    • @StevdzaSan
      @StevdzaSan  2 ปีที่แล้ว

      Glad to hear that buddy 😊

  • @rma1563
    @rma1563 3 ปีที่แล้ว

    thanks. great tutorial. but does this mean that if we use LiveData to store UI data then we do not need ViewModel during orientation changes?

  • @КахарманБалтабаев-б2о
    @КахарманБалтабаев-б2о 3 ปีที่แล้ว +1

    Очень! Полезное и понятное видео!

  • @angelmauriciorivas6160
    @angelmauriciorivas6160 3 ปีที่แล้ว

    hi Stevdza_San why when the virtual device (or the cell phone) is rotated the toast msg "finish" is displayed even the timer keeps counting?

  • @agp1444
    @agp1444 3 ปีที่แล้ว

    best explanation. thanks. now I got it

  • @erkany6753
    @erkany6753 3 ปีที่แล้ว

    Your explanation is clear and you keep the content simple. I have done the first part of the work which is the only timer without buttons. It works fine except rotating the screen. I have just wanted to test whether ViewModel is working fine with the config changes(I have just learned that from your video as well :). It seems every screen rotate create a shadow timer and displaying those shadow seconds in the textView. Is there any solution you suggest? Thank you

  • @RT-nv9ii
    @RT-nv9ii 3 ปีที่แล้ว

    This is 1000x better than my university. Go figure.

  • @pickemparty
    @pickemparty หลายเดือนก่อน

    Can this be done strictly with Java and NOT Kotlin!?

  • @fatemaattia8744
    @fatemaattia8744 3 ปีที่แล้ว

    thank you for this amazing video, i like your way of teaching

  • @ismailkassim3866
    @ismailkassim3866 4 ปีที่แล้ว +1

    Hi Stevdza, I am not able to access livedata. It is not showing up at all. I check and its not private.

  • @bharathkalyans
    @bharathkalyans 3 ปีที่แล้ว

    Hi Stevdaza San I have Implemented this App ,but there's a bug!If start a timer again before finishing the previous one the UI is shuffling with the two Numbers!?I know that I have to do something with threading or coroutines help me out?

  • @Kunal-jp8tn
    @Kunal-jp8tn 2 ปีที่แล้ว +1

    Great tutorial....

  • @nikhilsinghvadhva5333
    @nikhilsinghvadhva5333 4 ปีที่แล้ว +1

    It was helpful, Thank you!!

  • @dhanukalakshan1553
    @dhanukalakshan1553 5 หลายเดือนก่อน

    Great video thank you very much❤

  • @yasserakbbach7342
    @yasserakbbach7342 4 ปีที่แล้ว +2

    where can I start the MVVM pattern using Android?

  • @SupertigerDev
    @SupertigerDev 4 ปีที่แล้ว +2

    could you show us how to use this in a recycler view?

  • @andreww5773
    @andreww5773 3 ปีที่แล้ว

    Any chance of an update now that ViewModelProvider is deprecated?

  • @sinsna8331
    @sinsna8331 3 ปีที่แล้ว

    Hvala puno kralju

  • @electrious_46
    @electrious_46 2 ปีที่แล้ว +1

    He went a little fast here, put it on 0.75 speed and you will understand easily, take it step by step

  • @RockRider2k
    @RockRider2k 2 ปีที่แล้ว

    What's the point of having private MutableLiveData and exposing it as a LiveData?

  • @pinoyako1928
    @pinoyako1928 3 ปีที่แล้ว

    Smooth tutorial,

  • @GujaratiSafar
    @GujaratiSafar 3 ปีที่แล้ว

    Good information.

  • @hachij_
    @hachij_ 4 ปีที่แล้ว +1

    thank you for this!

  • @hugovera1540
    @hugovera1540 ปีที่แล้ว

    its unclear the layout or what is the id of it

  • @dominikamotylinska6430
    @dominikamotylinska6430 3 ปีที่แล้ว

    Hej, thanks for saving my butt.

  • @nicklandreth2527
    @nicklandreth2527 3 ปีที่แล้ว +1

    You ran through the observer which was the only part that would be hard to understand.

  • @samstoyroom
    @samstoyroom 3 ปีที่แล้ว

    StateFlow please!!

  • @danilochagov8418
    @danilochagov8418 4 ปีที่แล้ว +2

    Хорошие видео, ты русский?

  • @Zhuinden
    @Zhuinden ปีที่แล้ว

    No SavedStateHandle

  • @bhawanasahu3000
    @bhawanasahu3000 4 ปีที่แล้ว +1

    You just read the words from developer site in the first two minutes..!! Can you actually explain those in lemon language?

  • @SkriptFBC
    @SkriptFBC 4 ปีที่แล้ว

    i just subscribed, wanna collab on a video?

  • @tarjep
    @tarjep 3 ปีที่แล้ว +1

    For somone who is new to Kotlin and Android, you going waaaaaay to fast.

  • @Sean-hd1bp
    @Sean-hd1bp 3 ปีที่แล้ว

    Slow down please

  • @jojomajo
    @jojomajo 3 ปีที่แล้ว

    OK OK OK OOOOOK OOOKOK

  • @mockingspyhd6099
    @mockingspyhd6099 3 ปีที่แล้ว

    You talking very veeery fast bro...