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);
  } 
 
  @Override public void setContentView(int layoutResId) {