"Tip: If you have a custom activity theme in which you'd like to remove the action bar, set theandroid:windowActionBar
style property tofalse
. However, if you remove the action bar using a theme, then the window will not allow the action bar at all, so you cannot add it later—callinggetActionBar()
will return null."
Even though I'm using ActionBarSherlock, it delegates to the native ActionBar implementation (the same as this library does). Here's the relevant theme I'm using which works on the emulator on Honeycomb+: https://gist.github.com/1584943.Caution: If your activity does not have an Action Bar (if you did not set the theme of your activity or application to the holographic or Action Bar theme), thengetActionBar()
returns null.
Ok. Thanks for the detailed reply. I will be looking into this to see what the issue is. It sounds like it is on my side somewhere. The fact that you are using the actionbar(through sherlock) gives me hope.
Thanks again,
Patrick