A Complete Guide To Learn Dagger 2

A Complete Guide To Learn Dagger 2

What is Dagger 2?

Dagger 2 is a dependency injection for Android. Dagger 2 is a dependency injection (DI) framework.

And, Dependency Injection in build upon the concept of Inversion of Control which says that a class should get its dependencies from outside. In simple words, no class should instantiate another class but should get the instances from a configuration class.

As we know that Dagger 2 is another important library for Android Projects. So we must have a proper grip on using Dagger 2 in the Android Projects.

Let’s see all the best resources available to learn Dagger 2 in the best possible way.

Why do we use the Dependency Injection Framework like Dagger in Android?

In this blog, we are going to see why do we use the Dependency Injection Framework like Dagger in Android. This will help you in understanding how it can be useful for Android Project and you will be able to convince anyone to use a Dependency Injection Framework based on the requirement.

Dagger 2 Android - How to get started with dependency injection

This video will help you in getting started with Dagger for Android Development.

Introduction to Dagger 2, Using Dependency Injection in Android: Part 1

As you all know, I am very fortunate to have Janishar Ali as my friend. I am learning from him by working very close to him. Working with him is always fun for me. When you learn from the best, you learn the best. In this article, he has provided the best introduction to Dagger 2 and how to use dependency injection. It deals with the introduction to the concept and overview of Dagger2.

Introduction to Dagger 2, Using Dependency Injection in Android: Part 2

It contains Dagger2 implementation through an example.

Android Dagger2: Critical things to know before you implement

All about when and how a dependency class is instantiated and the scenarios that may produce unexpected results.

Guide For Designing Your Android App Architecture Using Dagger 2

This blog will help you in learning how to design an Android App Architecture using Dagger 2.

Using Dagger in a Multi-Module Project

In this blog, we are going to talk about how we can use Dagger for dependency management in a multi-module project.

Using Dagger in Dynamic Feature Module

In this blog, we are going to learn how we can setup Dagger in our project having Dynamic Features Module.

Dagger Hilt Tutorial - Step by Step Guide

In this blog, we are going to see how to work with Dagger-Hilt, the new dependency injection library based on top of Dagger with a step by step guide. Dagger-Hilt is recommended by Google for dependency injection in Android.

With great power, comes great responsibility. So learn it in the best way.

Happy Coding :)

Also, Let’s become friends on Twitter, Linkedin, Github, Quora, and Facebook.