Remove android default action bar-ThrowExceptions

Exception or error:

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

How to solve:

I’ve noticed that if you set the theme in the AndroidManifest, it seems to get rid of that short time where you can see the action bar. So, try adding this to your manifest:

<android:theme="@android:style/Theme.NoTitleBar">

Just add it to your application tag to apply it app-wide.

###

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>

Leave a Reply

Your email address will not be published. Required fields are marked *