requestFeature() must be called before adding content

Well, just do what the error message tells you.

Don’t call setContentView() before requestFeature().

Note:

As said in comments, for both ActionBarSherlock and AppCompat library, it’s necessary to call requestFeature() before super.onCreate()

Leave a Comment