 <p>Well, just do what the error message tells you.</p> <p>Don't call <code>setContentView()</code> before <code>requestFeature()</code>.</p> <p><strong>Note:</strong></p> <p>As said in comments, for both <code>ActionBarSherlock</code> and <code>AppCompat</code> library, it's necessary to call <code>requestFeature()</code> before <code>super.onCreate()</code></p>