One way to achieve this: @Override public boolean onPrepareOptionsMenu(Menu menu) { super.onPrepareOptionsMenu(menu);
MenuItem item = menu.findItem(R.id.my_item); item.setVisible(true); item.setEnabled(false); return true; } You can manipulate the visibility, the enabled state, the title, the icon and so on... On Dec 9, 12:49 pm, "Manjunatha M (ಮಂಜುನಾಥ ಎಂ)" <[EMAIL PROTECTED]> wrote: > Hi All, > > Is there any way to disable some of the menu items at the runtime? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---