Skip to content

Instantly share code, notes, and snippets.

@mcatta
Created September 22, 2017 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mcatta/68e0165447253bb1263207121497edb5 to your computer and use it in GitHub Desktop.
Save mcatta/68e0165447253bb1263207121497edb5 to your computer and use it in GitHub Desktop.
AppModule.java
@Module
public class AppModule {
Application mApplication;
public AppModule(Application application) {
mApplication = application;
}
@Provides
@Singleton
Application providesApplication() {
return mApplication;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment