Back to project page NerdZoo.
The source code is released under:
Apache License
If you think the Android project NerdZoo 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.bignerdranch.android.nerdzoo; /* ww w . ja va2 s . c om*/ import android.app.Application; import android.content.Context; import dagger.ObjectGraph; import timber.log.Timber; public class BaseApplication extends Application { private ObjectGraph mObjectGraph; @Override public void onCreate() { super.onCreate(); mObjectGraph = ObjectGraph.create(new BaseModule(this)); Timber.plant(new Timber.DebugTree()); } public static BaseApplication get(Context context) { return (BaseApplication) context.getApplicationContext(); } public final void inject(Object object) { mObjectGraph.inject(object); } }