Demystifying the new Dagger Android Injection API 2.10+
James Shvarts
1.7K20

I have a question here. How can i get the Activity/Fragment’s context not the app scope context inside ActivityModule. For example.

@Module

public class ActivtyModule {

@CustomScope
@Provides

Context provideContext() {

return // here what should i return?

}

}

Like what you read? Give Moe Junior a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.