Skip to content
Coding in Flow
Coding in Flow

Watch the next part

Dagger 2 is a dependency injection framework for Android and Java that is developed by Google. In this tutorial, we will step by step learn how to use Dagger 2 and why we need it.

In part 1, we will learn what a dependency is, what injection means, and what benefits dependency injection provides in terms of code coupling, testability and single responsibility principle. We will also learn what new problems dependency injection brings up and how Dagger 2 can help us get rid of them while still reaping the benefits of dependency injection.

Show more
Show less
Share this

Dagger 2

► Part 1 – Introduction

  • Part 2 – Component, Provision Method & Constructor Injection
  • Part 3 – Field Injection
  • Part 4 – Method Injection
  • Part 5 – Module & Provider Methods
  • Part 6 – @Binds
  • Part 7 – Stateful Modules
  • Part 8 – @Component.Builder, @BindsInstance & @Named
  • Part 9 – Generated Code Explained
  • Part 10 – @Singleton
  • Part 11 – Custom Scopes & Component Dependencies
  • Part 12 – Subcomponents
  • Part 13 – @Subcomponent.Builder
  • Part 14 – @Component.Factory

More Android Tutorials

Remove the ActionBar

TextWatcher Enable/Disable Button

Translations Editor

Notifications & Notification Channels

Android Studio Navigation Shortcuts

SQLite + RecyclerView

Up Button

My new course is out!

Get my new MVVM Caching Course now!

 

  • Legal Notice
  • Privacy Policy
  • Affiliate Disclosure
© 2021 Coding in Flow