Android Open Source - looking-glass Android Module






From Project

Back to project page looking-glass.

License

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.

Java Source Code

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;
    }
}




Java Source Code List

ca.orospakr.lookingglass.AndroidModule.java
ca.orospakr.lookingglass.AuthAnswerService.java
ca.orospakr.lookingglass.FutureValue.java
ca.orospakr.lookingglass.HttpService.java
ca.orospakr.lookingglass.LookingGlassApp.java
ca.orospakr.lookingglass.LookingGlassModule.java
ca.orospakr.lookingglass.MainActivity.java
ca.orospakr.lookingglass.SessionManager.java