title: How can I programmatically disable all menu item in my activity
body: <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 programmatically (in another part of the code in my activity, not in onCreateOptionsMenu() method itself)? </p>