How do I hide a menu item in the actionbar?
<p>I have an action bar with a menuitem. How can I hide/show that menu item?</p>

<p>This is what I'm trying to do:</p>

<pre><code>MenuItem item = (MenuItem) findViewById(R.id.addAction);
item.setVisible(false);
this.invalidateOptionsMenu();
</code></pre>
