Can I just inject super class when use dagger2 for dependency injection?
I encountered the same situation. One way to ease a bit the injection from a common component in all Activities is the following: 1) Extend the Application class to be able to create the common component and keep a reference to it. public class ApplicationDagger extends Application { private ApplicationComponent component; @Override public void onCreate(){ … Read more