Geosearchef Geosearchef - 8 days ago 4x
Android Question

requestWindowFeature(Window.FEATURE_NO_TITLE); not working in Froyo and Gingerbread

I have an fullscreen apllication. I'm using requestWindowFeature(Window.FEATURE_NO_TITLE) to remove the title. This works very well for my 4.1.2 Smartphone and the 4.4.2 Emulator.
In the 2.2 Emulator, on my 2.2 Smartphone and on my 2.3.6 tablet the title is still being displayed. I tried very much things like changing styles in the Manifest or editing those styles in the styles.xml, nothing works.

Here's my onCreate():

protected void onCreate(Bundle savedInstanceState) {



GameData.display = new Display(this);

CoreData.mainActivity = this;



If you want to remove the title, just add this style into your manifest file.


then the problem arises, notifying that you must use a derivative of an appcompat library. this is because you are using the support library v7, & on creating your project, an activity creates which doesn't extends as an Activity class, but ActionBarActivity class.

so, if you really want to use the support library, create the theme that you created under values, values-v11, values-v14 folders & apply your theme on your manifest.

else, change your ActionBarActivity class into Activity class & apply Theme.Black.NoTitleBar theme to your manifest.

hope that it helps.