Search in sources :

Example 6 with EventManager

use of roboguice.event.EventManager in project roboguice by roboguice.

the class RoboLauncherActivity 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<Activity>(this, savedInstanceState));
}
Also used : RoboInjector(roboguice.inject.RoboInjector) EventManager(roboguice.event.EventManager) LauncherActivity(android.app.LauncherActivity) Activity(android.app.Activity)

Example 7 with EventManager

use of roboguice.event.EventManager in project roboguice by roboguice.

the class RoboMapActivity 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<Activity>(this, savedInstanceState));
}
Also used : RoboInjector(roboguice.inject.RoboInjector) EventManager(roboguice.event.EventManager) MapActivity(com.google.android.maps.MapActivity) Activity(android.app.Activity)

Example 8 with EventManager

use of roboguice.event.EventManager 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)

Example 9 with EventManager

use of roboguice.event.EventManager in project roboguice by roboguice.

the class RoboAccountAuthenticatorActivity 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<Activity>(this, savedInstanceState));
}
Also used : RoboInjector(roboguice.inject.RoboInjector) EventManager(roboguice.event.EventManager) AccountAuthenticatorActivity(android.accounts.AccountAuthenticatorActivity) Activity(android.app.Activity)

Example 10 with EventManager

use of roboguice.event.EventManager in project roboguice by roboguice.

the class RoboIntentService method onCreate.

@Override
public void onCreate() {
    final Injector injector = RoboGuice.getInjector(this);
    eventManager = injector.getInstance(EventManager.class);
    injector.injectMembers(this);
    super.onCreate();
    eventManager.fire(new OnCreateEvent<Service>(this, null));
}
Also used : EventManager(roboguice.event.EventManager) Injector(com.google.inject.Injector) Service(android.app.Service) IntentService(android.app.IntentService)

Aggregations

EventManager (roboguice.event.EventManager)21 RoboInjector (roboguice.inject.RoboInjector)19 Activity (android.app.Activity)16 OnCreateEvent (roboguice.activity.event.OnCreateEvent)3 AccountAuthenticatorActivity (android.accounts.AccountAuthenticatorActivity)2 Service (android.app.Service)2 Injector (com.google.inject.Injector)2 PreferenceListener (roboguice.inject.PreferenceListener)2 ExpandableListActivity (android.app.ExpandableListActivity)1 IntentService (android.app.IntentService)1 LauncherActivity (android.app.LauncherActivity)1 ListActivity (android.app.ListActivity)1 TabActivity (android.app.TabActivity)1 PreferenceActivity (android.preference.PreferenceActivity)1 FragmentActivity (android.support.v4.app.FragmentActivity)1 ActionBarActivity (android.support.v7.app.ActionBarActivity)1 SherlockActivity (com.actionbarsherlock.app.SherlockActivity)1 SherlockFragmentActivity (com.actionbarsherlock.app.SherlockFragmentActivity)1 SherlockListActivity (com.actionbarsherlock.app.SherlockListActivity)1 SherlockPreferenceActivity (com.actionbarsherlock.app.SherlockPreferenceActivity)1