@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Object appComponent = DaggerService.getDaggerComponent(MortarDemoApplication.instance()); Component component = DaggerService.createComponent(Component.class, appComponent); component.inject(this); String scopeName = getLocalClassName() + "-task-" + getTaskId(); MortarScope parentScope = MortarScope.getScope(getApplication()); activityScope = parentScope.findChild(scopeName); if (activityScope == null) { activityScope = parentScope.buildChild() .withService(BundleServiceRunner.SERVICE_NAME, new BundleServiceRunner()) .withService(DaggerService.SERVICE_NAME, component) .build(scopeName); } BundleServiceRunner.getBundleServiceRunner(activityScope).onCreate(savedInstanceState); actionBarOwner.takeView(this); setContentView(R.layout.root_layout); container = (PathContainerView) findViewById(R.id.container); containerAsBackTarget = (HandlesBack) container; FlowDelegate.NonConfigurationInstance nonConfig = (FlowDelegate.NonConfigurationInstance) getLastCustomNonConfigurationInstance(); History history = History.single(new ChatListScreen()); flowSupport = FlowDelegate.onCreate(nonConfig, getIntent(), savedInstanceState, new GsonParceler(new Gson()), history, this); }