Hi Dario,
Matthias Schlesinger
1

Hi Matthias,

One of the drawbacks of not using a dependency injection library on Android is exactly what you highlighted. You have to pass down Context in your Activities/Services and other Context objects.

Both of the use cases you mentioned can be avoided by using Dagger (or other DI). With Dagger you can inject your Context the moment you need it and you can avoid passing it down from Activities all the way to your Repository or any other class that depends on it.

So that is another tradeoff for using/not using a DI library.

Cheers,
Dario