Dependency Injection on Android using Hilt

Implement Dependency Injection using Hilt without boilerplate code

Ratings: 0.00 / 5.00




Description

Are you wondering what dependency and Dependency Injection is, why you need dependency injection in your project, and how to implement it using Hilt? Then you are at the right place and this course is for you.

In this course, you will learn:

  • what Dependency and Dependency Injection are

  • how to implement Dependency Injection using Hilt

  • different features of the Hilt library


Dependency Injection is an important technique to make code:

  • More maintainable

  • Avoid code replication

  • Improve lifecycle management

  • More testable

  • More readable

Hilt is a Dependency Injection library that is built on top of Dagger and it helps to implement Dependency Injection without a lot of boilerplate code.


At the end of the course, you will be able to:

  • set up the Hilt library in the Android Studio project

  • create a module for providing dependencies

  • provide dependencies using @Provide annotation

  • bind dependencies using @Binds annotation

  • inject dependencies using @Inject annotation

  • integrate Hilt with ViewModel

  • to provide the same instance with @Singleton annotation

  • inject Context using Hilt

  • provide instances of the same types using @Named and @Qualifier annotations

Implementation of Dependency Injection is demonstrated in the example of a simple weather forecast application. After taking this course, you will be able to implement Dependency Injection using Hilt in your Android Studio project.


Why me?

I am developing Android applications since 2013. I have participated in many projects in the education, mobile banking, telecommunication, retail, and transportation fields. I am teaching Android development since 2015 and created several online courses on Android development. I have a Masters degree in Computer Science. Currently, I working on my start-up project called Cheapta, which helps to find cheap flights.

What You Will Learn!

  • Learn what is Dependency Injection
  • Set up Hilt in Android Studio project
  • Use Hilt for implementing Dependency Injection
  • Create simple application using Hilt

Who Should Attend!

  • Beginner Android developers who would like to learn Dependency Injection using Hilt