app/src/main/java/com/adamg/materialtemplate/ui/activities/BaseActivity.java
private void injectDependencies() {
        // Get a reference to the Application
        BaseApplication application = (BaseApplication) getApplication();
        mActivityScopeGraph = application.getApplicationGraph().plus(getModules().toArray());
        // Inject ourselves so subclasses will have dependencies fulfilled when this method returns.
        inject(this);
    }
/**
     * Create a new Dagger ObjectGraph to add new dependencies using a plus operation and inject the
     * declared one in the activity. This new graph will be destroyed once the activity lifecycle
     * finish.
     * <p/>
     * This is the key of how to use Activity scope dependency injection.
     */
Create a new Dagger ObjectGraph to add new dependencies using a plus operation and inject the
declared one in the activity. This new graph will be destroyed once the activity lifecycle
finish.

This is the key of how to use Activity scope dependency injection.
Create a new Dagger ObjectGraph to add new dependencies using a plus operation and inject the declared one in the activity . This new graph will be destroyed once the activity lifecycle finish . This is the key of how to use Activity scope dependency injection .
private void injectDependencies() {
        BaseApplication application = (BaseApplication) getApplication();
        mActivityScopeGraph = application.getApplicationGraph().plus(getModules().toArray());
        inject(this);
    }
private void injectDependencies ( ) { BaseApplication application = ( BaseApplication ) getApplication ( ) ; mActivityScopeGraph = application . getApplicationGraph ( ) . plus ( getModules ( ) . toArray ( ) ) ; inject ( this ) ; }
Create a new Dagger ObjectGraph to add new dependencies using a plus operation and inject the
 declared one in the activity.
Create a new Dagger ObjectGraph to add new dependencies using a plus operation and inject the declared one in the activity .
// Get a reference to the Application // Inject ourselves so subclasses will have dependencies fulfilled when this method returns.