Code example for FragmentActivity

Methods: setProgressBarIndeterminateVisibility

    super.setContentView(view, params);
  private void onSetContentView() { 
    mSetContentViewAlreadyCalled = true;
   * Helper method that allows to initialize and add a fragment to activities that usually have 
   * just one single fragment. Fragment is added using its class.getName() as tag. 
   * @param containerId resource id of the fragment container (must be created through android 
   * resources) 
   * @param fragmentClass the class of the fragment to setup 
  void setupBaseFragment(int containerId, Class<? extends Fragment> fragmentClass) {
    setupBaseFragment(containerId, fragmentClass, null);