Dependency Injection in Android with Dagger 2
4.5 (399 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
1,663 students enrolled

Dependency Injection in Android with Dagger 2

Learn the fundamental theory of Dependency Injection and use Dagger 2 to develop clean Android applications
Bestseller
4.5 (399 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
1,663 students enrolled
Created by Vasiliy Zukanov
Last updated 2/2019
English
English
Current price: $9.99 Original price: $99.99 Discount: 90% off
30-Day Money-Back Guarantee
This course includes
  • 2.5 hours on-demand video
  • 1 downloadable resource
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to Udemy's top 3,000+ courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • Understand the architectural significance of dependency injection in Android applications
  • Master Dagger 2 dependency injection framework

  • Integrate Dagger 2 into Android applications using the simplest and the cleanest approach

  • Implement Pure Dependency Injection without any third-party frameworks
Course content
Expand all 42 lectures 02:37:03
+ Fundamental Dependency Injection Techniques
6 lectures 13:14
Fundamental Dependency Injection Techniques
01:54
Comparison of Fundamental Dependency Injection Techniques
02:29
Best Fundamental Dependency Injection Technique
01:16
Udemy Course Review Popup
01:07
+ Dependency Injection Architectural Pattern
3 lectures 08:55
Architectural Patterns
02:37
Dependency Injection Architectural Pattern vs Fundamental Techniques
03:00
+ Journey To Dependency Injection
12 lectures 40:59
Decoupling Business Logic from UI and Networking Logic
07:04
Decoupling Dialogs Management Logic
03:07
Sharing an Instance of a Service between Multiple Clients
02:37
Law of Demeter
04:05
Composition Root
02:04
Presentation Composition Root
05:22
Factory
02:19
Pure Dependency Injection
02:55
Convention Over Configuration
04:37
Preventing Multiple Injections
01:00
Dependency Injection Frameworks
01:17
+ Dagger 2 Tutorial
13 lectures 44:30
Adding Dagger Dependency to the Project
00:37
Application Component
10:04
Presentation Component
05:09
Presentation Component as Injector
03:53
Dependent Components
03:46
Subcomponents
04:23
Multi Module Components
02:57
Automatic Service Discovery
01:56
Injection into Fragments and Dialogs
02:15
Service Component
02:11
Summary
03:07
+ ViewModel
6 lectures 44:59
ViewModelFactory
12:23
ViewModelFactory Cleanup
03:09
ViewModelFactory Cleanup Using Dagger 2 Multibindings
05:21
Fixing Subtle Bug in ViewModelFactory
16:10
ViewModel Summary
03:04
+ Course Summary
2 lectures 04:26
Course Summary
03:01
Bonus Lecture: Special Discounts for My Other Courses and Social Links
01:25
Requirements
  • Hands-on experience with Android development (preferably 6 months or more)
  • Knowledge of Java
Description

Many professional Android developers use Dagger 2 dependency injection framework to build clean and maintainable Android applications. Dependency injection is one of the most fundamental and beneficial architectural pattern in object-oriented design, and it is used extensively in Android world.

After completing this course you'll know what dependency injection is and how to use Dagger 2 dependency injection framework.

You'll understand that dependency injection is not about frameworks, annotations, reflection or code generation, but about the fundamental design and architecture of your Android apps. You'll realize that dependency injection is not black magic and that all real-world Android applications, even the simplest ones, can benefit from it.

Even though the end goal of this course is to teach you Dagger 2, I will also show you how to implement so-called Pure Dependency Injection in Android without using any third-party libraries at all. This will allow you to fully understand and appreciate the role of dependency injection frameworks.


  • Professional grade 

  • From fundamentals to best practices

  • Optimized for experienced Android developers

  • Non-trivial examples

  • Concise

  • Source code on GitHub with step-by-step commits history for easier review


Just like any other tool, dependency injection frameworks can be very helpful in Android development, or be misused. Therefore, while there are many alternative ways to use Dagger 2 in your applications, not all of them are equally good.

This course will spare you a lot of time because you'll quickly learn how to integrate Dagger 2 into Android applications to achieve the best structure optimized for long term maintainability. This approach was tested in many professional commercial projects and it produces outstanding results.

So, if you want to learn what dependency injection is and how to use Dagger 2 to develop clean and maintainable Android applications - this course is for you.

I can’t wait to see you inside.

Who this course is for:
  • Professional Android developers