Back to project page vocabulary-list.
The source code is released under:
Apache License
If you think the Android project vocabulary-list 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.rulych.vocabularylist; //w w w . j a va 2 s . co m import com.rulych.vocabularylist.util.ThreadLoggingTree; import android.app.Application; import android.content.Context; import dagger.ObjectGraph; import timber.log.Timber; public class VocabularyListApplication extends Application { private ObjectGraph mObjectGraph; public static VocabularyListApplication get(Context context) { return (VocabularyListApplication) context.getApplicationContext(); } @Override public void onCreate() { super.onCreate(); if (BuildConfig.DEBUG) { Timber.plant(new ThreadLoggingTree()); } else { // Crashlytics.start(this); // Timber.plant(new CrashReportingTree()); } mObjectGraph = ObjectGraph.create(getModules()); } protected Object[] getModules() { return new Object[] { new AppModule(this) }; } public ObjectGraph getObjectGraph() { return this.mObjectGraph; } public void inject(Object object) { mObjectGraph.inject(object); } }