I am working with XOOM and trying to hide the action bar. Therefore, I follow the instructions by doing the following in the manifest file:
uses-sdk android:minSdkVersion="11" android:targetSdkVersion="11"
also sets the topic of activity.
android:theme="@android:style/Theme.Holo.NoActionBar"
Unfortunately, I still see the action bar. so I remove part of the hunger action from my manifest and add the following code
ActionBar actionBar = getActionBar(); actionBar.hide();
getting an exception from the null pointer from the hide () method. so I understand that getActionBar () returns null. Now I wonder what I am missing?
source share