Android Open Source - InfoOverlay Main Application






From Project

Back to project page InfoOverlay.

License

The source code is released under:

Apache License

If you think the Android project InfoOverlay 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 com.trevore.infooverlay;
/*www . ja  va2s.c  om*/
import android.app.Application;
import android.content.Context;

import dagger.ObjectGraph;

/**
 * Created by trevor on 6/11/14.
 */
public class MainApplication extends Application {

    private ObjectGraph objectGraph;

    @Override
    public void onCreate() {
        super.onCreate();

        objectGraph = ObjectGraph.create(new BaseModule(this));
    }

    public ObjectGraph getObjectGraph() {
        return objectGraph;
    }

    public static MainApplication from(Context context) {
        return (MainApplication) context.getApplicationContext();
    }
}




Java Source Code List

com.trevore.infooverlay.BaseModule.java
com.trevore.infooverlay.MainActivity.java
com.trevore.infooverlay.MainApplication.java
com.trevore.infooverlay.OverlayService.java