Skip to main content

Posts

Showing posts with the label ape

Android in Plain English - Dagger

A lot of development articles I find tend to either explain things at too high of a level or too low of a level, so I either don't know how to get started with their idea or I'm too overwhelmed with all the possibilities of what I can do. That's why I want to start a series called Android in Plain English where I explain (in simple terms) some various Android topics and give an introduction on how to use them. For my first explanation, I'll start with Dagger . If you've spent much time learning about Android, you've likely heard about Dagger. You've also likely heard how it can be very complicated but also very powerful. In brief, Dagger is a dependency injection framework that helps you manage instantiating classes and other dependencies in your app. Dagger uses annotations to build a "dependency graph" and inject dependencies where they're needed. Basic classes (i.e. things that can be instantiated through their constructor) can have the...