The Ultimate Dagger-Hilt Guide (Dependency Injection) - Android Studio Tutorial

preview_player
Показать описание
Dependency injection is a core concept of software development. In this video, I'll show you how you can apply DI in an Android app using Dagger-Hilt.

⭐ Get certificates for your future job
⭐ Save countless hours of time
⭐ 100% money back guarantee for 30 days
⭐ Become a professional Android developer now:

💻 Let me personally review your code and provide individual feedback, so it won't backfire and cost you a fortune in future:

Subscribe to my FREE newsletter for regular Android, Kotlin & Architecture advice!

Join this channel to get access to perks:

Get the code here:

Join my Discord server:

You like my free content? Here you can buy me a coffee:

00:00 - What is dependency injection?
06:45 - Setting up Dagger-Hilt
08:25 - Setting up the structure
10:39 - Creating a module
17:20 - Injecting into ViewModels
20:15 - Injecting the ViewModel in the UI
21:40 - Creating the application class
24:05 - Two dependencies of same type
26:20 - Binding abstractions
29:58 - Field injection
31:28 - Lazy injection
Рекомендации по теме
Комментарии
Автор

Man, first of all, you are THE BEST Android YouTube channel in the whole website.
Second, you are just awesome!! You are a great teacher and a very charismatic human being.
Last, but not least, I don't know how you don't get tired of making so many great videos.
You ARE the best!! Thanks for teaching me so much. It's being a pleasure to have your videos as part of my life.

leonardosibela
Автор

I use dagger/hilt every day but usually as copy/paste so today I decided to finally get known how it works. Your explanation is the best of several that I saw today!

alexeysimchenko
Автор

This is by far the best explanation of Dagger Hilt I have found online. Not even the official Android Developers' Youtube channels explain it like you do. Thank you so much!!

manuelsilveriof
Автор

your tutorials are the best because you take time to explain the subtle concepts behind the code which is rare from other tutorials
i just had to watch this once the get the whole scope of what DI with Hilt is and it implementations

moforemmanuel
Автор

I am lost for words already. Man is always hitting the nail on the end. Much love ❤️.

osisuper
Автор

This is the most easy to understand explaination that I've ever found on dagger-hilt till now, you explained each topic very consicely yet clearly

shashanknanda
Автор

I always try to give credit where credit is deserved. And you my man are pure gold. I just stumbled on your content and I'm happy for that.
Fast, to the point, full of valuable information. Keep on going this is great. I will subscribe, upvote, like.
Wish you a good luck in the upcoming days!

harishodzic
Автор

I am a student I can't buy u a coffee but I can like and share your video with my friends.

Amazing Teaching :)

priyanshugupta
Автор

Man, you don't know how grateful I am right now! THANK YOU SO MUCH!!!

mandarpawar
Автор

I normally blast through these tutorials but this one took a solid 1-2 hours because of coding and note-taking at the same time and there was so much good content. For example it takes 7 individual scrolls to get through the notes top to bottom, that's a lot more than usual

nrg
Автор

philip lackner, i studied your and workout your Weather app (clean code architecture) course, and i don't understand most of things, then after watching this dependency injection i understand all the doubts i have on the weather app course. super tutorial ;)

VinothKumar-ooye
Автор

broo thank you, "you never actually call these functions, dagger hilt does", cleared up so much for me!

henrygalvan
Автор

I always go back to your tutorial because it is very simple and easy to understands from fundamentals point of view

muyassarabdullah
Автор

You're a great teacher. Hats off to you man!! 🙌 Keep making such types of tutorials on android topics.

jagat.jeeban
Автор

The quality of your content is incredibly high, awesome stuff!! Thanks a lot!!

nantiyachomtee
Автор

you slayyyed it!!! 30 minutes video covered almost everything for a person who knew only how to use dagger2 👏

parulsinghalk
Автор

you are the best Kotlin Android Developer's teacher, or maybe the best programming teacher i've ever watched

khalidrinaldy
Автор

Thank you, excellent content as always. When I decided to switch carrier and become an Android dev, your channel was one of the main sources to learn the basics.

Keep up the good work! 💯

attilabacsa
Автор

I still can't believe how terrific these videos are. You explanations are superb. Thank you so much for taking the time to make this content.

tonyalbanese
Автор

Finallyyy, I learned Dagger-Hilt. Good explanation. Thanks, Philipp

rajm