Search in sources :

Example 16 with RoboInjector

use of roboguice.inject.RoboInjector in project roboguice by roboguice.

the class RoboExpandableListActivity 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) ExpandableListActivity(android.app.ExpandableListActivity) Activity(android.app.Activity)

Example 17 with RoboInjector

use of roboguice.inject.RoboInjector in project roboguice by roboguice.

the class RoboFragmentActivity 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) FragmentActivity(android.support.v4.app.FragmentActivity) Activity(android.app.Activity)

Example 18 with RoboInjector

use of roboguice.inject.RoboInjector in project roboguice by roboguice.

the class RoboListActivity 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) ListActivity(android.app.ListActivity) Activity(android.app.Activity)

Example 19 with RoboInjector

use of roboguice.inject.RoboInjector in project roboguice by roboguice.

the class RoboPreferenceActivity method onCreate.

/** {@inheritDoc } */
@Override
protected void onCreate(Bundle savedInstanceState) {
    final RoboInjector injector = RoboGuice.getInjector(this);
    eventManager = injector.getInstance(EventManager.class);
    preferenceListener = injector.getInstance(PreferenceListener.class);
    injector.injectMembersWithoutViews(this);
    super.onCreate(savedInstanceState);
    eventManager.fire(new OnCreateEvent<Activity>(this, savedInstanceState));
}
Also used : RoboInjector(roboguice.inject.RoboInjector) EventManager(roboguice.event.EventManager) PreferenceListener(roboguice.inject.PreferenceListener) PreferenceActivity(android.preference.PreferenceActivity) Activity(android.app.Activity)

Example 20 with RoboInjector

use of roboguice.inject.RoboInjector in project roboguice by roboguice.

the class RoboSherlockAccountAuthenticatorActivity 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)

Aggregations

RoboInjector (roboguice.inject.RoboInjector)22 EventManager (roboguice.event.EventManager)21 Activity (android.app.Activity)17 OnCreateEvent (roboguice.activity.event.OnCreateEvent)3 AccountAuthenticatorActivity (android.accounts.AccountAuthenticatorActivity)2 PreferenceListener (roboguice.inject.PreferenceListener)2 ExpandableListActivity (android.app.ExpandableListActivity)1 LauncherActivity (android.app.LauncherActivity)1 ListActivity (android.app.ListActivity)1 TabActivity (android.app.TabActivity)1 PreferenceActivity (android.preference.PreferenceActivity)1 NonNull (android.support.annotation.NonNull)1 FragmentActivity (android.support.v4.app.FragmentActivity)1 ActionBarActivity (android.support.v7.app.ActionBarActivity)1 AppCompatActivity (android.support.v7.app.AppCompatActivity)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 MapActivity (com.google.android.maps.MapActivity)1