Search in sources :

Example 1 with OnCreateEvent

use of roboguice.activity.event.OnCreateEvent in project PocketHub by pockethub.

the class RoboAccountAuthenticatorAppCompatActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    final RoboInjector injector = RoboGuice.getInjector(this);
    eventManager = injector.getInstance(EventManager.class);
    injector.injectMembersWithoutViews(this);
    super.onCreate(savedInstanceState);
    eventManager.fire(new OnCreateEvent(savedInstanceState));
}
Also used : RoboInjector(roboguice.inject.RoboInjector) EventManager(roboguice.event.EventManager) OnCreateEvent(roboguice.activity.event.OnCreateEvent)

Example 2 with OnCreateEvent

use of roboguice.activity.event.OnCreateEvent in project hubroid by EddieRingle.

the class RoboSherlockFragmentActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    final RoboInjector injector = RoboGuice.getInjector(this);
    eventManager = injector.getInstance(EventManager.class);
    injector.injectMembersWithoutViews(this);
    super.onCreate(savedInstanceState);
    eventManager.fire(new OnCreateEvent(savedInstanceState));
}
Also used : RoboInjector(roboguice.inject.RoboInjector) EventManager(roboguice.event.EventManager) OnCreateEvent(roboguice.activity.event.OnCreateEvent)

Example 3 with OnCreateEvent

use of roboguice.activity.event.OnCreateEvent in project PocketHub by pockethub.

the class RoboAppCompatActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    final RoboInjector injector = RoboGuice.getInjector(this);
    eventManager = injector.getInstance(EventManager.class);
    injector.injectMembersWithoutViews(this);
    super.onCreate(savedInstanceState);
    eventManager.fire(new OnCreateEvent(savedInstanceState));
}
Also used : RoboInjector(roboguice.inject.RoboInjector) EventManager(roboguice.event.EventManager) OnCreateEvent(roboguice.activity.event.OnCreateEvent)

Aggregations

OnCreateEvent (roboguice.activity.event.OnCreateEvent)3 EventManager (roboguice.event.EventManager)3 RoboInjector (roboguice.inject.RoboInjector)3