Mattia Romagnoli Mattia Romagnoli - 1 year ago 101
Java Question

Android: remove title bar error

Hello i'm trying to remove the title bar from my app with this code:


Under the onCreate method in the activity, but when i run the app it gives error and it closes (i'm sorry but i don't know how to see the error log).

Why it gives error? Thanks

Answer Source

You must call requestWindowFeature(Window.FEATURE_NO_TITLE); before setContentView().

protected void onCreate(
    final Bundle savedInstanceState)




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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download