src/main/java/com/fizzbuzz/android/dagger/InjectingActionBarActivity.java
@Override
    protected void onCreate(android.os.Bundle savedInstanceState) {
        // expand the application graph with the activity-specific module(s)
        ObjectGraph appGraph = ((Injector) getApplication()).getObjectGraph();
        List<Object> activityModules = getModules();
        mObjectGraph = appGraph.plus(activityModules.toArray());

        // now we can inject ourselves
        inject(this);

        // note: we do the graph setup and injection before calling super.onCreate so that InjectingFragments
        // associated with this InjectingActivity can do their graph setup and injection in their
        // onAttach override.
        super.onCreate(savedInstanceState);


    }
@Override
    protected void onCreate(android.os.Bundle savedInstanceState) {
        // expand the application graph with the activity-specific module(s)
        ObjectGraph appGraph = ((Injector) getApplication()).getObjectGraph();
        List<Object> activityModules = getModules();
        mObjectGraph = appGraph.plus(activityModules.toArray());

        // now we can inject ourselves
        inject(this);

        // note: we do the graph setup and injection before calling super.onCreate so that InjectingFragments
        // associated with this InjectingActivity can do their graph setup and injection in their
        // onAttach override.
        super.onCreate(savedInstanceState);


    }
@ Override protected void onCreate ( android . os . Bundle savedInstanceState ) { // expand the application graph with the activity-specific module(s) ObjectGraph appGraph = ( ( Injector ) getApplication ( ) ) . getObjectGraph ( ) ; List < Object > activityModules = getModules ( ) ; mObjectGraph = appGraph . plus ( activityModules . toArray ( ) ) ; // now we can inject ourselves inject ( this ) ; // note: we do the graph setup and injection before calling super.onCreate so that InjectingFragments // associated with this InjectingActivity can do their graph setup and injection in their // onAttach override. super . onCreate ( savedInstanceState ) ; }
Creates an object graph for this ActionBarActivity by extending the application-scope object graph with the
modules returned by {@link #getModules()}.
<p/>
Injects this ActionBarActivity using the created graph.
Creates an object graph for this ActionBarActivity by extending the application - scope object graph with the modules returned by {