Biji Biji - 6 months ago 26
Android Question

How to disable action bar permanently

I can hide the action bar in honeycomb using this code:

getActionBar().hide();


But when the keyboard opens, and user copy-pastes anything, the action bar shows again.
How can I disable the action bar permanently?

Answer

By setting activity theme in Manifest,

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