November 16, 2024
Android Dependency Injection - Introduction

Android Dependency Injection – Introduction

Video by Simplified Coding via YouTube
Source
Android Dependency Injection - Introduction

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.
👉 https://simplifiedcoding.in/course/android-dependency-injection-course

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:
👉 https://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.
👉 https://www.simplifiedcoding.net

You can SUPPORT me if you want
👉 Patreon: https://www.patreon.com/BelalKhan
👉 UPI (India Only): probelalkhan@okaxis
👉 PayTM (India Only): +917549161079
👉 PayPal: https://www.paypal.me/probelalkhan

You can also check some of my other courses from these links
👉 Android Testing Tutorial: https://bit.ly/2OWyO95
👉 Android MVVM Tutorial: https://bit.ly/3iLfVzu
👉 Android Game Development Tutorial: http://bit.ly/38JmltC
👉 Retrofit Android Tutorial: http://bit.ly/2DEwAl1
👉 Android RecyclerView Tutorial: http://bit.ly/2TqVjPz
👉 Android Room Tutorial: http://bit.ly/2PfQHeN
👉 Firebase Auth Tutorial: http://bit.ly/2WUGhEo
👉 Android Notification Tutorial: http://bit.ly/2Sc6jQl
👉 Building a Complete Wallpaper App: http://bit.ly/30UN8zV
👉 Build Tic Tac Toe in Android: http://bit.ly/30goxW0

❤️❤️ Thank You All for the Love and Support ❤️❤️

#AndroidDependencyInjection
#Dagger2
#Hilt

Go to Source