Referencing the Activity inside its module
问题 How do I use the new AndroidInjector.inject and still be able to provide an Activity instance inside an Activity Module? The Dagger docs don`t make it clear how to archive this. The use case is the following: I have an Activity Module which provides a Presenter to my Activity, but the Presenter needs a reference to the Activity. I used to have something like @Inject Presenter presenter; public onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ((CustomApplication)