Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

New Developer
Posts: 88
Registered: ‎11-04-2008
My Device: Not Specified

How to Hide and Show Menu Items



Does anybody know how to hide/show (similar to setVisible(boolean b) method) menu items in the menu?


i tried removing them for hiding, then adding them back for showing. But my problem is, how would i know that the menu item already exists in the menu?

Posts: 17,019
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to Hide and Show Menu Items

you can detect menu items like this:

set the locale to en (if it is not already)
make a string match on the menu items toString, if it matches remove it.
set the locale back (if it was changed)
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter