@@ -0,0 +1,3453 @@
+package triaina.injector.activity;%0A%0Aimport android.accounts.AccountAuthenticatorActivity;%0Aimport android.content.Intent;%0Aimport android.content.res.Configuration;%0Aimport android.os.Bundle;%0A%0Aimport roboguice.activity.event.OnActivityResultEvent;%0Aimport roboguice.activity.event.OnConfigurationChangedEvent;%0Aimport roboguice.activity.event.OnContentChangedEvent;%0Aimport roboguice.activity.event.OnCreateEvent;%0Aimport roboguice.activity.event.OnDestroyEvent;%0Aimport roboguice.activity.event.OnNewIntentEvent;%0Aimport roboguice.activity.event.OnPauseEvent;%0Aimport roboguice.activity.event.OnRestartEvent;%0Aimport roboguice.activity.event.OnResumeEvent;%0Aimport roboguice.activity.event.OnStartEvent;%0Aimport roboguice.activity.event.OnStopEvent;%0Aimport roboguice.event.EventManager;%0Aimport roboguice.inject.ContentViewListener;%0Aimport triaina.injector.TriainaInjector;%0Aimport triaina.injector.TriainaInjectorFactory;%0A%0Aimport javax.inject.Inject;%0A%0Apublic class TriainaAccountAuthenticatorActivity extends AccountAuthenticatorActivity %7B%0A    protected EventManager mEventManager;%0A%0A    @Inject ContentViewListener ignored; // BUG find a better place to put this%0A%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A        TriainaInjector injector = TriainaInjectorFactory.getInjector(this);%0A        mEventManager = injector.getInstance(EventManager.class);%0A        injector.injectMembersWithoutViews(this);%0A        super.onCreate(savedInstanceState);%0A        mEventManager.fire(new OnCreateEvent(savedInstanceState));%0A    %7D%0A%0A    @Override%0A    protected void onRestart() %7B%0A        super.onRestart();%0A        mEventManager.fire(new OnRestartEvent());%0A    %7D%0A%0A    @Override%0A    protected void onStart() %7B%0A        super.onStart();%0A        mEventManager.fire(new OnStartEvent());%0A    %7D%0A%0A    @Override%0A    protected void onResume() %7B%0A        super.onResume();%0A        mEventManager.fire(new OnResumeEvent());%0A    %7D%0A%0A    @Override%0A    protected void onPause() %7B%0A        super.onPause();%0A        mEventManager.fire(new OnPauseEvent());%0A    %7D%0A%0A    @Override%0A    protected void onNewIntent(Intent intent) %7B%0A        super.onNewIntent(intent);%0A        mEventManager.fire(new OnNewIntentEvent());%0A    %7D%0A%0A    @Override%0A    protected void onStop() %7B%0A        try %7B%0A            mEventManager.fire(new OnStopEvent());%0A        %7D finally %7B%0A            super.onStop();%0A        %7D%0A    %7D%0A%0A    @Override%0A    protected void onDestroy() %7B%0A        try %7B%0A            mEventManager.fire(new OnDestroyEvent());%0A        %7D finally %7B%0A            try %7B%0A                TriainaInjectorFactory.destroyInjector(this);%0A            %7D finally %7B%0A                super.onDestroy();%0A            %7D%0A        %7D%0A    %7D%0A%0A    @Override%0A    public void onConfigurationChanged(Configuration newConfig) %7B%0A        final Configuration currentConfig = getResources().getConfiguration();%0A        super.onConfigurationChanged(newConfig);%0A        mEventManager.fire(new OnConfigurationChangedEvent(currentConfig, newConfig));%0A    %7D%0A%0A    @Override%0A    public void onContentChanged() %7B%0A        super.onContentChanged();%0A        TriainaInjectorFactory.getInjector(this).injectMembers(this);%0A        mEventManager.fire(new OnContentChangedEvent());%0A    %7D%0A%0A    @Override%0A    protected void onActivityResult(int requestCode, int resultCode, Intent data) %7B%0A        super.onActivityResult(requestCode, resultCode, data);%0A        mEventManager.fire(new OnActivityResultEvent(requestCode, resultCode, data));%0A    %7D%0A%7D%0A

Add TriainaAccountAuthenticatorActivity