title: Indeterminate Progress Bar Does Not Show when Activity Starts. But Does Other Times
body: <p>I am using <code>ActionBarSherlock</code>.  After the Splash screen loads, I start the next <code>Activity</code> like so:</p>
  
  <pre><code>Intent i = new Intent(SplashActivity.this, MainFragmentActivity.class);
  startActivity(i);
  </code></pre>
  
  <p>In my main <code>FragmentActivity</code> I do this:</p>
  
  <pre><code>import com.actionbarsherlock.app.ActionBar;
  import com.actionbarsherlock.app.SherlockActivity;
  import com.actionbarsherlock.view.Window;
  
  public class MainFragmentActivity extends SherlockFragmentActivity {
  
  
      @Override
          public void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
              requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
              setContentView(R.layout.fragment_layout);
  
  
              actionBar = getSupportActionBar();
              actionBar.setDisplayShowCustomEnabled(true);
              actionBar.setDisplayShowTitleEnabled(false);
  
              // Set up Main Fragment
              FragmentTransaction t2 = this.getSupportFragmentManager()
                      .beginTransaction();
              SherlockListFragment mainFrag = new FollowingFragment();
              t2.replace(R.id.main_frag, mainFrag);
              t2.commit();
  
                     // lots more edited out
      }
  </code></pre>
  
  <p>Over in <code>FollowingFragment</code> (which is first <code>Fragment</code> to automatically load when <code>Activity</code> starts, in my <code>AsyncTask</code>, I do this:</p>
  
  <pre><code>@Override
  protected void onPreExecute() {
             ((MainFragmentActivity)Context).setSupportProgressBarIndeterminateVisibility(true);
          }
  </code></pre>
  
  <p>Here is the problem; when the <code>Activity</code> FIRST starts, the ProgressBar does not show.  But once the <code>Activity</code> is loaded and the user is swapping out <code>Fragment</code>'s, using the same <code>setSupportProgressBarIndeterminateVisibility(true);</code> the Progress Bar spinner shows perfectly.</p>
  
  <p>I am importing all the correct <code>Sherlock</code> libraries, using the newest <code>Sherlock</code> (4.04 I think?)  Can anyone tell what is wrong?</p>