[android] Remove android default action bar

Possible Duplicate:
How to hide the title bar for an Activity in XML with existing custom theme

i remove the action bar by requestWindowFeature(Window.FEATURE_NO_TITLE); however, when the app starts, the action bar appears in a very short time before it executes the above statement. how can I make it totally disappear? thank

This question is related to android android-actionbar

The answer is


You can set it as a no title bar theme in the activity's xml in the AndroidManifest

    <activity 
        android:name=".AnActivity"
        android:label="@string/a_string"
        android:theme="@android:style/Theme.NoTitleBar">
    </activity>