Android MVVM with Dagger 2, Retrofit and Coroutines - CheezyCode (Hindi)

Поделиться
HTML-код
  • Опубликовано: 24 янв 2025

Комментарии • 82

  • @ANILKUKRETI
    @ANILKUKRETI 2 года назад +7

    Its simple but very robust way of dealing with complexities. Great tutorial

  • @zakwanibrahim7283
    @zakwanibrahim7283 2 года назад

    best explanation .... I just shifted from MVP to MVVM ... :)

  • @haider-u9s
    @haider-u9s Год назад +1

    Sir You Explain Rocket Science Logic in Simple Words💗💗💗

  • @MuhammadUsmanHaider-k5v
    @MuhammadUsmanHaider-k5v 9 месяцев назад

    Superb Explanation !!! Your tutorial help me to grip Dagger very easily.

  • @prasannadeshpande4435
    @prasannadeshpande4435 2 года назад

    Thank you for the complete tutorial on Dagger. Your playlist helped a lot.

  • @ankitjaiswal7211
    @ankitjaiswal7211 2 года назад

    Best tutorial for android development in india good explation thanks a lot
    😊👌

  • @santoshnisal5757
    @santoshnisal5757 2 года назад

    Great explanation. Simple, Understandable..

  • @DnyaneshwarMahajan-e8b
    @DnyaneshwarMahajan-e8b Год назад

    Best tutorial, very informative.

  • @AfnanKhakwani
    @AfnanKhakwani 2 года назад +1

    You can simply inject the repository in the ViewModel constructor and can use the following line in the MainActivity:
    "val viewModel: MainViewModel by viewModels()"
    This will initialize the ViewModel in the MainActivity without using the ViewModelFactory.
    Hope you will find it useful!
    And no doubt, you are making awesome content. Explanations are exceptional.
    Love from Pakistan ❤

    • @CheezyCode
      @CheezyCode  2 года назад +2

      Love from India ❤️

  • @sumanshil5090
    @sumanshil5090 2 года назад

    Your explanation is next level... thanks for sharing your knowledge

  • @anilpatel1220
    @anilpatel1220 2 года назад

    Very Good.kindly upload some video regrading some Android app security concept.

  • @areebahmad7935
    @areebahmad7935 9 месяцев назад

    superb explanation sir

  • @sancypdevassy5949
    @sancypdevassy5949 Год назад

    Thank you for sharing information's

  • @tulikakekre6156
    @tulikakekre6156 Год назад

    Great and helpful tutorial

  • @NitishDevgan-x8h
    @NitishDevgan-x8h Год назад

    great explanation

  • @NeerajYadav
    @NeerajYadav 2 года назад +1

    Nice tutorial, clear and well explained.
    But please provide dagger-hilt tutorial as well

  • @kaushiksaha8479
    @kaushiksaha8479 2 года назад +1

    Awesome sir...after dagger series ends, please start with threads looper handlers as well as rx java

  • @jatinvashisht4293
    @jatinvashisht4293 2 года назад

    Great video sir
    Keep going 💪

  • @sundern990
    @sundern990 2 года назад

    Awesome sir thank you so much 😊

  • @ShriwastavaAbhishek
    @ShriwastavaAbhishek Год назад +1

    Hi,
    I have a doubt.
    When we created out app component class,
    @Singleton
    @Component(modules = [RetrofitBuilder::class])
    interface ApplicationComponent {
    fun inject(myFragment: MyFragment)
    }
    We call inject method in our fragment/Activity. Same for every other fragments. Is there any way that we can call the inject method only in our application class & no need to explicitly call it in every activity/fragment?

    • @CheezyCode
      @CheezyCode  Год назад +1

      Bina class access kiye properties mei value assign kaise hogi?

    • @ShriwastavaAbhishek
      @ShriwastavaAbhishek Год назад

      @@CheezyCode YES, I understand. But is there any way to only initialize FakerAPI class once only in all our activities/fragments?
      Fagment1.inject
      Fragment2.inject
      So I do not have to write like above.

    • @Punarjagran
      @Punarjagran Год назад

      @@ShriwastavaAbhishek generic fragment.inject, will allow field injection

    • @Punarjagran
      @Punarjagran Год назад

      no, @Inject won't be there.. in generic, wrong socha tha

  • @mayursalvi1515
    @mayursalvi1515 Год назад

    Great video. Just one doubt. Can we inject repository in ViewModel by using field injection? In this way, we won't need to create any factory for ViewModel. and we can call appcomponent.inject method in init function of ViewModel. Is it possible? Is there any downside to this?

  • @aakashbhalani9955
    @aakashbhalani9955 2 года назад

    Great video! Grateful!

  • @armanreyaz1956
    @armanreyaz1956 2 года назад

    Nice tutorial, clear and well explained. I just have a feeling that you may get a bit slow with your speaking. Sometimes It feels like playback speed at 1.25

  • @harisaurangzeb
    @harisaurangzeb 2 года назад +1

    Please implement payment integration and google map and polyline using kotline

  • @hardcodeandroid
    @hardcodeandroid 2 года назад

    Helpful videos sir

  • @SajidShaikh
    @SajidShaikh 2 года назад +1

    Can you please provide full tutorial on mvvm, corutines, reterofit and hilt, as of now I see you created separate video for mvvm and dagger and with mvvm & hilt. thanku for all 🎥.

    • @CheezyCode
      @CheezyCode  2 года назад

      Converted this project to HILT in this video -ruclips.net/video/NqiqsRiMT1Q/видео.html
      Will try to create full tutorial with different API

  • @khushwantpratapyadav6214
    @khushwantpratapyadav6214 2 года назад

    Thanks for the video

  • @jawadahmed7336
    @jawadahmed7336 2 года назад

    sir could you make a video on baseActivity and baseFragment classess?

  • @sulemankhan523
    @sulemankhan523 2 года назад

    why to create 2 live data one with underscore and one without underscore can you please help to understand this ?

    • @CheezyCode
      @CheezyCode  2 года назад +1

      _ is private won't be accessible outside the class and it's mutable in nature - you can update the value within that class only
      Without underscore is public livedata - you can just read the value from it

  • @rpitpatel1004
    @rpitpatel1004 2 года назад +1

    Sir, I am following your course by developing a project in android studio. I am getting a different response in this API (502 Bad Gateway) and I am in the middle of developing the project. Could you please update API with the same response? Thank You 🙏

    • @CheezyCode
      @CheezyCode  2 года назад

      Api toh third party hai bro...no control over it...

    • @rpitpatel1004
      @rpitpatel1004 2 года назад

      @@CheezyCode okay Sir I will try different one.

    • @rpitpatel1004
      @rpitpatel1004 2 года назад

      @@CheezyCode It is working now I think it has some limit over requests.

  • @pawanacharya4879
    @pawanacharya4879 2 года назад

    How do do field injection in repository or viewModels.

  • @vishalgohel3711
    @vishalgohel3711 2 года назад +4

    Awesome tutorial 😃
    I have one question.
    Why we need to use MainViewModelFatory?
    can't we directly create MainViewModel object like below
    val viewModel: MainViewModel by viewModels()
    Or am I miss understood something?

    • @CheezyCode
      @CheezyCode  2 года назад +1

      If you have ViewModel that needs input parameters in constructor, you have to create factory
      by Viewmodels is just a shortcut - behind the scenes it does the same thing. Plus, this requires another extension library.

    • @vishalgohel3711
      @vishalgohel3711 2 года назад +1

      @@CheezyCode I thought Dagger will provide all objects, so viewModels() will be easy to use.
      but I don't know it's requires another extension library.
      So thanks for your reply.

  • @babulal8928
    @babulal8928 2 года назад

    Sir activity se viewmodel me data kaise pass krte h multiple edit text h and repository me kaise api lagegi please sir video

    • @CheezyCode
      @CheezyCode  2 года назад

      1. ViewModel pe function banao
      2. Function mei parameters pass karo
      3. Iss function ko activity se call karlo
      4. ViewModel pe data aagya ..repo ka function call karalo

    • @babulal8928
      @babulal8928 2 года назад

      @@CheezyCode very very much thank you sir for reply sir vo function hi call nahi ho raha sir aapne bahut sare video banaye h please sir meri ye problem bhi resolve kara dijiye sir please

  • @seemadubey397
    @seemadubey397 Год назад

    DaggerApplicationComponent is unresolved reference, tried rebuild adding all required dependencies plz help

    • @CheezyCode
      @CheezyCode  Год назад

      What's the error?

    • @seemadubey397
      @seemadubey397 Год назад

      @@CheezyCode dagger is not generating component after rebuild

  • @Now_I_am_all_fired_up
    @Now_I_am_all_fired_up 2 года назад

    bhaiya jab mai kise or api ko hit karta hu tu yeh problem aati hai ...
    expected begin_array but was begin_object at line 1 column 2 path $
    iska kya solution hai ?

    • @CheezyCode
      @CheezyCode  2 года назад

      Response mei type galat pass ho rha h...array vs object aa rha h...peeche se shayad object aa rha h aap array bana rahe ho

  • @tabishkhan2012
    @tabishkhan2012 2 года назад

    Thumbnail 👌

  • @DiwakarSingh-pz4ww
    @DiwakarSingh-pz4ww 6 месяцев назад

    How to call multiple api using MVVM architecture

  • @ektajain3983
    @ektajain3983 2 года назад

    Should we create seperate Factory class for each my VM , aur we should create one Generic Factory class for all my viewmodel sir ? @CheezyCode

  • @sivasantosh7326
    @sivasantosh7326 2 года назад

    What to do with multiple view models?

    • @CheezyCode
      @CheezyCode  2 года назад

      ??
      ViewModel toh honge he multiple....

  • @kartikayy
    @kartikayy 2 года назад

    Repository should not contain android components, we can use flows instead ?

    • @CheezyCode
      @CheezyCode  2 года назад +1

      Yes we can use...I didn't have flows related videos on my channel back then so used livedata. Flows series is going to be started soon. Stay tuned for that.

    • @CheezyCode
      @CheezyCode  2 года назад +1

      One more thing - it is ok to use livedata if we are not doing any heavy transformation on the data but flows are recommended now.

    • @kartikayy
      @kartikayy 2 года назад

      @@CheezyCode Great... looking fwd to flows series.

  • @AvinashSaini-c6z
    @AvinashSaini-c6z Год назад

    why we not add factory in module

  • @algo_chronicles
    @algo_chronicles 2 года назад

    hilt is much better i think

    • @CheezyCode
      @CheezyCode  2 года назад +2

      Better is subjective 🙂

    • @algo_chronicles
      @algo_chronicles 2 года назад

      @@CheezyCode yes sir by your videos i learnt behind the scenes