Code example for FragmentActivity

Methods: getApplication, onCreate, requestWindowFeature

0
public abstract class BaseActivity extends FragmentActivity { 
  private boolean mSetContentViewAlreadyCalled;
  @Inject Bus bus;
 
  @Override protected void onCreate(Bundle savedInstanceState) {
    requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
    super.onCreate(savedInstanceState);
    ((GithubJobsApplication) getApplication()).inject(this);
  } 
 
  @Override public void onResume() { 
    super.onResume(); 
    bus.register(this);
  } 
 
  @Override public void onPause() { 
    super.onPause(); 
    bus.unregister(this);
  } 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE