Android Dependency Injection - Introduction

  Рет қаралды 31,759

Simplified Coding

Simplified Coding

Күн бұрын

Hi everyone, welcome to Android Dependency Injection Course. Dependency Injection is a technique widely used in Software Engineering to eliminate code coupling. And that is why we can use the same technique in Android Projects as well.
What is Dependency Injection?
-----------------------------------------------------
The term has two words "Dependency" and "Injection". Consider a class Car that requires an instance of class Engine. In this case Engine is a dependency for class Car.
According to Dependency Injection principle, the class should not construct it's dependencies, instead it should get the dependencies from outside. We can do it with the help of a Constructor Parameter or a Setter Function.
If we are doing it with Constructor Parameter it is called "Constructor Injection". If we are doing it with Setter Function it is called, setter injection or field injection.
Why Dependency Injection?
--------------------------------------------
These are some of the advantages of using Dependency Injection:
👉 Maintainability, as DI helps code to be loosely coupled maintaining the codes become easier.
👉 Testability, as the code is now loosely coupled, writing tests are easy. And the more you write test the better the quality of the code.
👉 Readability, as DI helps to follow "Single Responsibility Principle", the codes become straightforward, that is easy to read and understand.
👉 Flexibility, again it is the result of loosely coupled code. If the code is loosely coupled and it is following the Single Responsibility principle it becomes very flexible and reusable.
What you will learn in this Course?
-------------------------------------------------------
In this course, you will learn almost everything about Dependency Injection in your Android Project. We will start by understand what exactly is "Dependency Injection". Then we will try to implement the technique manually in our android project.
And then finally we will use Dagger2 and Hilt to automate the Dependency Injection in our Android Project.
If you are having trouble navigating between different lessons of this Android Dependency Injection Course then you can go to this link.
👉 simplifiedcoding.in/course/an...
Here you will find all the videos of this course in chronological order.
If you want to get in touch with me; you can find my contact details here:
👉 www.simplifiedcoding.net/about/
Finally, If you love my content please SHARE my courses to your friends. You can share this course to your Facebook, WhatsApp etc.
For more contents related to Software Development visit my website.
👉 www.simplifiedcoding.net
You can SUPPORT me if you want
👉 Patreon: / belalkhan
👉 UPI (India Only): probelalkhan@okaxis
👉 PayTM (India Only): +917549161079
👉 PayPal: www.paypal.me/probelalkhan
You can also check some of my other courses from these links
👉 Android Testing Tutorial: bit.ly/2OWyO95
👉 Android MVVM Tutorial: bit.ly/3iLfVzu
👉 Android Game Development Tutorial: bit.ly/38JmltC
👉 Retrofit Android Tutorial: bit.ly/2DEwAl1
👉 Android RecyclerView Tutorial: bit.ly/2TqVjPz
👉 Android Room Tutorial: bit.ly/2PfQHeN
👉 Firebase Auth Tutorial: bit.ly/2WUGhEo
👉 Android Notification Tutorial: bit.ly/2Sc6jQl
👉 Building a Complete Wallpaper App: bit.ly/30UN8zV
👉 Build Tic Tac Toe in Android: bit.ly/30goxW0
❤️❤️ Thank You All for the Love and Support ❤️❤️
#AndroidDependencyInjection
#Dagger2
#Hilt

Пікірлер: 45
@HarveySpecterYT
@HarveySpecterYT 2 жыл бұрын
This video explained soo much about DI and in a very simple way. Thank You for this video.
@mattgraves3709
@mattgraves3709 3 жыл бұрын
So glad to have found this. I like to see it done manually before using convenience libraries
@SachinGuy
@SachinGuy Жыл бұрын
Sir I see you everywhere in the android community!
@GriNAME
@GriNAME 2 жыл бұрын
Thanks for your understandable lessons! You helped me a lot!
@rodolfozacarias9679
@rodolfozacarias9679 Жыл бұрын
Very easy to understand, thanks man!
@bishalsingh8086
@bishalsingh8086 3 жыл бұрын
so excited for this course :)
@akre8590
@akre8590 3 жыл бұрын
Thanks in advance for the course, I'm pretty sure it will be great.
@SimplifiedCoding
@SimplifiedCoding 3 жыл бұрын
You are welcome friend.
@llothar68
@llothar68 2 жыл бұрын
Dependency injection only becomes clear and useful when the dependent part is large enough. That makes it difficult for beginners examples where it all just inflates the code size
@sat_talk
@sat_talk 3 жыл бұрын
Great Bro.. pl. keep it up
@calebkigencode
@calebkigencode 10 ай бұрын
You are the best teacher man
@SachinGuy
@SachinGuy Жыл бұрын
This is amazing concept thanks sir!
@manisharora4444
@manisharora4444 2 жыл бұрын
Amazing tutorial
@raghavaggarwal8644
@raghavaggarwal8644 3 жыл бұрын
Nicest Explanation on DI on KZfaq!
@farhad9579
@farhad9579 2 жыл бұрын
Great tutorial
@vanshikasaini6807
@vanshikasaini6807 3 жыл бұрын
I have an question ,if developer wants to implement one common interface in 3 classes/fragments/activity so for this is it necessary to create 3 different @Binds abstract fun to use interface via hilt
@ahmad7a.4k28
@ahmad7a.4k28 2 жыл бұрын
thank a lot
@amitmondal7427
@amitmondal7427 3 жыл бұрын
I am ready for it 😋😋😋
@swasthikn330
@swasthikn330 2 жыл бұрын
Helpful
@iftak01
@iftak01 2 жыл бұрын
can you explain filed injection? I did see the same example in official google doc but not sure of field injecton
@twojaStara698
@twojaStara698 2 жыл бұрын
Thanks for explaining.I thought before that Dependency is that dependency from build gradle
@ProgrammingSimplified0
@ProgrammingSimplified0 3 жыл бұрын
Nice explanation sir ☑️
@SimplifiedCoding
@SimplifiedCoding 3 жыл бұрын
Thanks friend.
@priyanshumaurya7903
@priyanshumaurya7903 3 жыл бұрын
thnx
@AmitSharmaplus
@AmitSharmaplus 3 жыл бұрын
Another most awaited course , i was waiting since your signup mvvm tutorial where you left the DI to implement ourself and you given the git code but i wanted to learn it from you and wait is over now :) Apart from this video you looks weaken day by day , is it from your wight loss program or is it your health .. please take care of yourself .
@SimplifiedCoding
@SimplifiedCoding 3 жыл бұрын
Not weaken, but getting stronger and better. Yes it is result of my weight loss program. High Intensity Training and Mindful Eating.
@AmitSharmaplus
@AmitSharmaplus 3 жыл бұрын
@@SimplifiedCoding That's great .. hopefully we will see your transformation journey too and inspire and motivate us.
@mohammadn1901
@mohammadn1901 3 жыл бұрын
Thanks man🌹 please make full app with mvvm, hilt, retrofit, Coroutines and more...
@SimplifiedCoding
@SimplifiedCoding 3 жыл бұрын
Very soon
@vengateshm2122
@vengateshm2122 3 жыл бұрын
Thanks a million! Hope all the chapters will be uploaded within short interval. Dagger2 and Hilt - Static - Compile time ?? - Reflection
@SimplifiedCoding
@SimplifiedCoding 3 жыл бұрын
github.com/google/guice This is an example of Reflection based DI framework, but is not recommended for Android.
@vengateshm2122
@vengateshm2122 3 жыл бұрын
@@SimplifiedCoding Thank You
@akshaivsunil642
@akshaivsunil642 3 жыл бұрын
Waiting for more
@SimplifiedCoding
@SimplifiedCoding 3 жыл бұрын
Working on it.
@MahabubKarim
@MahabubKarim 3 жыл бұрын
What is the meaning of "Refactoring becomes easy"?
@abbasalidaruwala
@abbasalidaruwala 3 жыл бұрын
Refactoring what does that mean?
@SimplifiedCoding
@SimplifiedCoding 3 жыл бұрын
Means restructuring the code.
@pawechilczuk7559
@pawechilczuk7559 3 жыл бұрын
The course is great but please note: although your face is very nice but sometimes it covers the code which is quite important here ;)
@saneeshms877
@saneeshms877 3 жыл бұрын
Codes are not completely visible
@oknok2330
@oknok2330 3 жыл бұрын
Start some project series 😭😭😭
@seemadubey397
@seemadubey397 3 жыл бұрын
U r using same tutorial and exsmple as in Udemy Anushka sir Android 11 tutorial
@shashankbhat6184
@shashankbhat6184 3 жыл бұрын
🔥🔥🙏🙏
@vinayTshetty
@vinayTshetty 2 жыл бұрын
Your Facial Video is Blocking the Code snippets please try doing that in future videos
@NoName-tr2cc
@NoName-tr2cc 2 жыл бұрын
You are handsome and your code is hidden behind you.
@udithasampath5122
@udithasampath5122 2 жыл бұрын
some details croped you head
Android Dependency Injection - Manually Injecting Dependencies
14:54
Simplified Coding
Рет қаралды 15 М.
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 36 МЛН
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
What is Dependency Injection?
6:48
Scott Bailey
Рет қаралды 114 М.
Dagger 2 Android Tutorial - Implementing Dagger Dependency Injection
20:48
Learn Dependency Injection and Write Better Code
21:52
Amigoscode
Рет қаралды 170 М.
Hilt and dependency injection - MAD Skills
13:06
Android Developers
Рет қаралды 46 М.
Hilt Dependency Injection (Kotlin Beginner Example)
21:20
CodingWithMitch
Рет қаралды 42 М.
Dependency Injection
4:47
Anthony Ferrara
Рет қаралды 938 М.
Clean Architecture in Android in 5 minutes
5:17
Renaro Santos
Рет қаралды 19 М.
basics of CODING in 10 minutes
15:34
The StudyTube Project
Рет қаралды 1,5 МЛН
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 65 МЛН
Samsung laughing on iPhone #techbyakram
0:12
Tech by Akram
Рет қаралды 7 МЛН