I have an Activity with ActionBar and tab navigation. I am using the split mode, so the tabs are at the top and actions are in the bottom bar. How can I dynamically change t
Activity.invalidateOptionsMenu() requires API Level 11. There is a simpler solution which is backwards compatible:
Add the MenuItem to the Menu initially but set its visibility to false. Set visibility to true when desired, using MenuItem.setVisible()