title: ActionBarCompat: Hide ActionBar before activity is created (bug?)
body: <p>So I was using the ActionBarSherlock and decided to switch to the new ActionBarCompat. With ABS, hiding the ActionBar was possible using the way described in this post:
  <a href="https://stackoverflow.com/questions/8500283/how-to-hide-action-bar-before-activity-is-created-and-then-show-it-again">How to hide action bar before activity is created, and then show it again?</a></p>
  
  <p>But, with the ActionBarCompat the app crashes on API14, because when you set <code>android:windowActionBar</code> as <code>false</code> the <code>getSupportActionBar()</code> method returns null, even if you have declared the <code>getWindow().requestFeature(Window.FEATURE_ACTION_BAR);</code> into the <code>onCreate()</code> method.</p>
  
  <p>Funny thing is that if you call <code>getActionBar()</code> instead, you get the object and everything works fine.</p>
  
  <p>So, is that a bug or am I missing something? Any ideas are welcome!</p>
  
  <hr>
  
  <p><code>styles.xml</code> file:</p>
  
  <pre><code>&lt;style name="Theme.MyApp" parent="@style/Theme.AppCompat.Light.DarkActionBar"&gt;
      &lt;item name="android:windowActionBar"&gt;false&lt;/item&gt;
      &lt;item name="android:windowTitleSize"&gt;0dp&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p><code>MyActivity.java</code> file:</p>
  
  <pre><code>...
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      // Get the action bar feature. This feature is disabled by default into the theme
      // for specific reasons.
      getWindow().requestFeature(Window.FEATURE_ACTION_BAR);
      ...
      // By default the action bar is hidden.
      getSupportActionBar().hide();
  }
  </code></pre>