How can I programmically disable all menu item in my activity
<p>In android, I create my menu item like this?</p>

<pre><code>public boolean onCreateOptionsMenu(Menu menu) {

        menu.add(0, 0, 0, "Menu1");
        menu.add(0, 1, 0, "Menu2");
        return true;
}
</code></pre>

<p>How can I set all the menu item disabled programmically (in another part of the code in my activity, not in onCreateOptionsMenu() method itself)? </p>

<p>Thank you.</p>
