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?
If you are using Theme.Holo.Light
and want to use the Theme.Holo.Light.NoActionBar
variant on pre 3.2 devices you can add this to your styles.xml
:
<style name="NoActionBar" parent="@android:style/Theme.Holo.Light">
<item name="android:windowActionBar">false</item>
<item name="android:windowNoTitle">true</item>
</style>
and then set it as your activity's theme:
<activity android:theme="@style/NoActionBar" ... />