Back to project page trifork-ibeacon-demo.
The source code is released under:
Apache License
If you think the Android project trifork-ibeacon-demo 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.trifork.ibeacon; /*from w w w . jav a 2 s.com*/ import android.app.Application; import android.content.Context; import dagger.ObjectGraph; import java.util.Arrays; import java.util.List; public class BaseApplication extends Application { private static ObjectGraph graph; @Override public void onCreate() { super.onCreate(); graph = ObjectGraph.create(getModules().toArray()); } protected List<Object> getModules() { return Arrays.<Object>asList(new ApplicationModule(this)); } public static void inject(Object object) { graph.inject(object); } public static Context getContext() { return null; } }