Welcome!

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

Reply
Developer
javed001
Posts: 43
Registered: ‎01-21-2009
My Device: Pearl 8100

How to show \ hide a menu

[ Edited ]

I have added a menu in the message list main screen using

ApplicationMenuItemRepository.getInstance().addMenuItem(ApplicationMenuItemRepository.MENUITEM_MESSAGE_LIST , new ApplicationMenuItem(1));

 

Since Message list shows all the items including the SMS, chats etc so I want to hide \ delete my menu when a Non Message item is selected. If anybody knows, please help.

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to show \ hide a menu

Sorry, AFAIK, once you have added your Menu to the list Screen, it willf display for all messages.  So you just need a nice Dialog saying something like "Not Applicable" if you are passed the wrong Object.

Please use plain text.