Back to project page looking-glass.
The source code is released under:
Apache License
If you think the Android project looking-glass listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package ca.orospakr.lookingglass; // w w w. j av a2s.co m import android.content.Context; import javax.inject.Singleton; import dagger.Module; import dagger.Provides; /** * A module for Android-specific dependencies which require a {@link Context} or * {@link android.app.Application} to create. * * Necessary glue for Dagger; makes Android singletons available in the object graph. */ @Module(library = true) public class AndroidModule { private final LookingGlassApp application; public AndroidModule(LookingGlassApp application) { this.application = application; } @Provides @Singleton Context provideApplicationContext() { return application; } }