Dependency injection (DI) is a technique widely used in programming and well suited to Android development . By following the principles of DI, you lay the groundwork for good app architecture. Implementing dependency injection provides you with the following advantages: Reusability of code. Ease of refactoring.