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

Posts: 10
Registered: ‎03-30-2010
My Device: Emulator
My Carrier: None

Creating dialogs while in net_rim_bb_options_app

[ Edited ]

Is it possible to have a registered menu item create dialogs using Dialog.inform() or display status messages via Status.show()? I've got a menu item registered for MENUITEM_SYSTEM. It appears in every menu I've found, as expected. It also works properly in all of them except the Options app, where it dies after attempting to show the user some info.


The app is built against the 4.5 JDE, though the device I'm testing on is a BlackBerry 8900 running OS version I've also seen it on other devices though, so it doesn't appear to be specific to one carrier, OS version, or model.


The registration of the menu item:


ApplicationMenuItemRepository.getInstance().addMenuItem(ApplicationMenuItemRepository.MENUITEM_SYSTEM, menuItem);


The relevant bits of the run method:


public Object run(Object aContext) {
try {
if (Logger.ENABLED) Logger.logDebug("FilteringMenuItem", "run", "pre");
if (Logger.ENABLED) Logger.logDebug("FilteringMenuItem", "run", "post");
} catch (Exception e) {
if (Logger.LOG_EXCEPTION) Logger.logException(TAG, CONTEXT, "Exception caught.", e);

return null;

When I'm on any screen but the options my log statements are written and the dialog shows properly. When I'm in the options menu the dialog does not display and logging stops at "pre" meaning the Dialog.inform call neither returns normally nor throws an error. I've also tried using Status.show() with the same results.


Interestingly, if I drill down deeper into some of the choices in the options app, the dialog will sometimes show. For example, it does not show if the "About" or "Advanced Options" screens are active, but will show when in "Bluetooth," "Date/Time," or "MMS".


Does net_rim_bb_options_app swallow dialog boxes, or is there something special needs to be done to enable an application to show them there?

Posts: 10
Registered: ‎03-30-2010
My Device: Emulator
My Carrier: None

Re: Creating dialogs while in net_rim_bb_options_app

A little more info: This also occurs on a Verizon 8530 running OS, so it's not tied directly to a specific device or carrier.


Any input would be vastly appreciated, even if it's just "yeah, that's not possible... change the way you register you menu item to ______."