Back to project page InfoOverlay.
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.
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(); } }