private void initializeDependencyInjectorForActivityScopeGraph(){
  TuentiTvApplication app=(TuentiTvApplication)getApplication();
  List modules=getModules();
  modules.add(new ActivityModule(this));
  activityObjectGraph=app.plus(modules);
  activityObjectGraph.inject(this);
}

private void initializeDependencyInjectorForActivityScopeGraph ( ) { TuentiTvApplication app = ( TuentiTvApplication ) getApplication ( ) ; List modules = getModules ( ) ; modules . add ( new ActivityModule ( this ) ) ; activityObjectGraph = app . plus ( modules ) ; activityObjectGraph . 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 . this is the key of how to use activity scope dependency injection .
