BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 10-22-2010, 02:35 PM   #1 (permalink)
New Member
 
Join Date: Oct 2010
Model: many
PIN: N/A
Carrier: many
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Creating dialogs while in net_rim_bb_options_app

Please Login to Remove!

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 5.0.0.822. I've also seen it also occurs on a Verizon 8530 running OS 5.0.0.973, so it's not tied directly to a specific device or carrier.

The registration of the menu item:

Code:
ApplicationMenuItemRepository.getInstance().addMenuItem(
    ApplicationMenuItemRepository.MENUITEM_SYSTEM, 
    menuItem);
The relevant bits of the run method:

Code:
public Object run(Object aContext) {
   try {
      Logger.logDebug("FilteringMenuItem", "run", "pre");
      Dialog.inform(aMessage.toString());
      Logger.logDebug("FilteringMenuItem", "run", "post");
   } catch (Exception e) {
      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?

Last edited by James McMurray : 10-22-2010 at 02:36 PM.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

MEMORIAL TRIBUTE POEM PHOTO PICTURE FRAME TABLE MANTEL SHELF HOME DECOR
$13.87
MEMORIAL TRIBUTE POEM PHOTO PICTURE FRAME TABLE MANTEL SHELF HOME DECOR pictureRELIANCE 45C98 ENHANCED MEMORY MODULE ***NIB***
$119.0
RELIANCE 45C98 ENHANCED MEMORY MODULE ***NIB*** pictureRadioShack 192K Data Flash Memory Organizer 65-779 PC Interface electronic list
$14.99
RadioShack 192K Data Flash Memory Organizer 65-779 PC Interface electronic list pictureNorand 128k Memory Ram Card for the HP 48GX / TDS SMI Survey Data Collectors
$50.0
Norand 128k Memory Ram Card for the HP 48GX / TDS SMI Survey Data Collectors  picture4 tubes Closed-Cell Foam memory Tubing 4mm hollow synthetic rubber tubing
$4.99
4 tubes Closed-Cell Foam memory Tubing 4mm hollow synthetic rubber tubing picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.