navigationUnclickUnhandled seems to be "Full Menu" on my screen

Simulator: 8330

I see the text "Menu" at the bottom of the screen of my BB after I change the value of a field on the screen. This seems to happen because of a navigationUnclickUnhandled 'event '. I don't know how to avoid this unexpected behavior.

btnCalculate.setChangeListener(new FieldChangeListener() {

  public void fieldChanged(Field field, int context) {      if (context != FieldChangeListener.PROGRAMMATIC) {            double mpg = calculateMpg(milesDriven.getText(), gallons.getText());          System.out.println("MPG: " + mpg);            String clipboardDate = (new SimpleDateFormat("MM/dd/yyyy")).formatLocal(entryDate.getDate());             float roundedMpg = (float)((int)(mpg*10000)) /(float)10000;           String outputText = vehicleChoice.toString() + ": " + clipboardDate + " " + roundedMpg;           Clipboard.getClipboard().put(outputText);         outputLine.setText(outputText);        } else {          System.out.println("System changed button");      }    }});

Step into the debugger, the following occurs just before the menu "menu" is displayed at the bottom in the center of the screen:

DataEntryScreen(Screen).navigationUnclickUnhandled(int, int) line: 3986

If I comment outputLine.setText (outputText); statement, the unwanted invite does not appear. I don't know how to 'manage' the navigationUnclick.

I want to display the results of the calculation to the screen, but if there is a better way to do it, I'm open to suggestions!

He solved.

Set the button calculate as follows

 ButtonField btnCalculate = new ButtonField("Calculate", ButtonField.CONSUME_CLICK+ButtonField.FIELD_HCENTER);

Tags: BlackBerry Developers

Similar Questions

  • How I always use the full width of my screen instead of only about 1/2 for the content? Menu bars are full width, is not the content of the page.

    I want to use the full width of my screen at any time.
    Menu bars are full-width but the content is not, in fact it is about 1/2 possible width.
    I bought a large wide screen to use it without having to increase the size of all fonts.

    Many sites Web uses a fixed width layout and do not automatically expand to fill the available space. It is perhaps for aesthetic reasons or for readability (it is more difficult for your brain to long strings).

    Firefox is not a built-in feature to change the layout, but there could be an add-on that does this.

    I understand that you do not want to increase the font size, but... Firefox zoom feature also expands the page layout and the image proportionally in order to preserve the overall design of the site. This article describes this feature in detail: the font size and zoom - increase the size of the web pages.

    If you find that you are constantly zooming all the sites by a comparable amount, there are modules, that you can use to set it as your default zoom level. For example:

  • How to stop pop-up screen 'See the keyboard, Switch Application, full Menu'?

    Hi all

    I always get this pop-up screen when switching from one screen to the other. I don't know what is the reason for the pop up screen and how to stop it. If you have encountered this problem before and know how to deal with it please give me help.

    The pop-up screen contains the following choices:

    Display the keyboard

    Switch application

    Full menu

    Thank you very much for your help!

    I found the solution to this problem here http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=10933

  • FieldChangeListener on a ButtonField displays a prompt with named Application Switch and full Menu options dialog box. instead of the action set.

    Hi I use a ButtonField in my class of the screen and adds a ChangeListener and provided the measures required in

    fieldChanged(Field field, int context)
    

    method. But everytime that I click on a button, a dialog box invites you to two play as Application Switch options and full Menu.


    I think that there is a method that must be overridden to avoid this problem. I get this result when I run my app in the device with OS 5.0, but it works fine on the Simulator (7.0).

    Use ButtonField.CONSUME_CLICK as a style.

    your override of navigationclick should also work, but you would raise the event changed yourself field before return true.

  • Full Menu vs. Click Menu

    This should be an easy, I hope

    I use ToolBarMenuButton.AddMenuItem (oddly) add the menu items to my screen that extends from screen. Works fine, but the items appear in both menus - the full Menu and the Menu that appears when you click the trackball.

    Can I override the behavior if I put things into the trackball click on the menu that do not appear in the full menu? I want to serve the choices that are specific to entire screen I'm on the menu as more of a selection of articles that apply to the application and click on the menu.

    Thank you

    Found my answer here:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

  • Remove the full Menu?

    Hello

    I have a listbox and when I click on any item in the list, it shows a menu called «Full Menu» I don't want this menu appears when you click the items in the list. How can I remove popup option "menu"?

    Please suggest.

    Thank you.

    I solved this problem with the following code:

    http://supportforums.BlackBerry.com/T5/Java-development/how-can-I-disable-the-default-ContextMenu/m-...

     protected void makeMenu( Menu menu, int instance ) {
            //will show the default menu
         //   super.makeMenu(menu, instance);
        }
         public boolean trackwheelClick( int status, int time )
        {
            return true;
        }
        public boolean trackwheelUnclick( int status, int time )
        {
            return true;
        }
        public boolean trackwheelRoll(int amount, int status, int time)
        {
            return true;
        }
    
  • How to replace the 'full' Menu Option and "close".

    Hi all

    I need to know how to replace the full menu option and the narrow, while I don't have a menu option in my class of the screen, and also I do not call superclass «super(DEFAULT_MENU |)» defult builders DEFAULT_CLOSE); »

    can someone give me some samples?

    Thank you very much

    Override the makeMenu() method in your form class and leave it empty.

  • How can I get the full menu on my forms editing interface?

    Hi people

    I have currently only get this menu on my editing of forms in British Colombia interface.

    Screen Shot 2016-02-26 at 10.27.49 am.png

    How do I you to the full menu - I think it should look like this: -.

    Screen Shot 2016-02-26 at 10.27.29 am.png

    Thank you Cathy

    Hi geoff123,

    The version of the edition that you see is the most recent interface

    If you have access to the high level, you can potentially change this by visiting

    http://yoursubdomain.BusinessCatalyst.com/AdminConsoleXT/betafeatures

    Uncheck the "New Admin Editor"

    However, I would probably stick with the more recent editor and get used to using it.

    Nathan

  • I have to add context menu on each screen?

    Hi all

    I want the shortcut menu on each of my screen (for example all on 15 screens that I need). So do I need to add the code to each of my screens? If this is not the case, how can I keep it?

    Hello

    I think you can write a 'basic screen', in the 'home screen' insert your code with the context menu and other screens extends this form 'base', so you get the context menu in the other screens too.

  • My apple TV seems to have a menu German, I never selected?

    Does anyone know how to establish the history of the camera?  My new apple TV has a menu already loaded German. I've never done this thank you

    The remote works the on-screen menu.

  • Hide a full menu with a click of the wheel

    Hello

    I have not created any menu in my application.

    I dynamically add a button to the screen using this code:

    ButtonField getDetailsButton = new ButtonField("See details", Field.FOCUSABLE | Field.FIELD_RIGHT);                        getDetailsButton.setChangeListener(new FieldChangeListener() {public void fieldChanged(Field field, int context) { ((CampaignManagementScreen)field.getScreen()).requestInfo("test");}});
    

    Problem is, when I click on a button by using the wheel, displays a context menu with a "menu" element Then, my action is executed normally. Don't you know that I can get rid of this menu?

    Thank you

    You must set the CONSUME_CLICK style in your buttonfield constructor.

  • I can't have the full menu of folders with 34.0.

    After that put Firefox updated to 34.0, when I bookmark on a page, I can drag is more my entire list of files to save a new one in the right place. This option is no longer available? The few that are on the list now are usually not what I'm looking for.

    I just thought of it. Never mind.

  • BlackBerry 10 10.3.1.1581 seems good but full of bugs

    10.3.1.1581 looks great, but it has set previously reported and new bugs:

    1. NEW: Cannot use TuneIn Radio for BB, the error message is "JavaScript Alert. Can't find an audio player taken in charge.

    2 OLD: There's the Z10' day 1, not yet resolved. Phone automatically opens the music application when it connects a bluetooth audio. It is very annoying and even dangerous when you are driving, because whenever you have need to shift your attention to stop a player. None of the mines of iPhone and the "BOLD" phones have this problem. You could somehow resolve autoplay, completely ban the multimedia features and miss a lot of functions of the phone with who.

    BBUser-Z wrote:

    10.3.1.1581 looks great, but it has set previously reported and new bugs:

    1. NEW: Cannot use TuneIn Radio for BB, the error message is "JavaScript Alert. Can't find an audio player taken in charge.

    Hello

    I appreciated the help of TuneIn in the past, but they have not updated their app for BB10 since may, 2013...

    Your question is clearly something that must be fixed sideways (just like when Windows8 was released, several programs were not compatible with the new operating system). If you want to solve the problem, please contact TuneIn.

    On the other hand, I can recommend another app that is named rad.io :

    http://appworld.BlackBerry.com/WebStore/content/30838898/

  • Satellite U500-115 - black frame on his Full - HD BX2450 LED screen

    Hello!

    A few days ago, I bought a LED of Samsung BX2450 Full-HD screen.
    I connected via HDMI for best quality.

    Unfortunately the screen is not completely filled. I have a black box on the screen.

    I read on some forums where they told me to turn on "Overscan" in the ATI Catalyst Control Center.
    Unfortunately there is no such a function. :(

    Then I downloaded the new version of Catalyst of ATI. The same problem.
    Tried to return to graph-Drivers of Toshiba for U500. Once again, without success.
    I'm unable to remove this black frame and use the entire screen.

    I use the good resolution of 1920 x 1080.
    Built in graphics card is ATI Mobility Radeon HD 4500 Series if I understand! ;-)
    Windows 7-64 bit.

    Support of ATI says that Toshiba laptops are not supported by their software. 'Please contact the laptop OEM for support of the drivers for these books' (http://support.amd.com/de/kbarticles/Pages/AMDCatalyst112ReleaseNotes.aspx)

    Can you please advise me what to do?
    Y at - it an update of driver proposed by Toshiba or any other solution?

    Tanks,
    Mario

    Hey,.

    Do you use the FN + F5 key combination to switch to your external monitor?
    Also interesting would be if you extend the desktop on the external monitor or if you use the external monitor only.

    It is also important to use the native resolution of your external monitor and correct the refresh rate.
    Normally in the options of the display driver you can also adjust the image if she s not full screen.

  • 2nd generation Apple Tv cannot get menu or menu settings on screen

    How can I get the menu or the menu of the settings for my generation Apple 2nd TV on my tv screen.

    I the have not used for some time and now the screen just displays pictures of wildlife from apple with the message from the Inbox on airplay

    I click the button menu on the remote control and if that had no effect then I pull the plug of the appletv and when I put it back in and he started it would still not be respons on the remote control, then I would change the battery of the remote control and if that did not help I she would connect to a computer with a usb end and normal microUSB cable in the other and then use iTunes on the computer for restore its firmware

Maybe you are looking for

  • M177fw - no Toner to paper

    M177fw - toner cartridge black original of Windows 7 - no error message - replaced last week and print OK for the first five days - current state of toner == > black (new cartridge) > 1000 pages remaining, cyan (original cartridge) 100 pages remainin

  • Why print head hits the sides of the printer?

    I have a "Hp Photosmart c5380 All in one ' and I don't know what to do with it. It can be fixed with a new headprint or should I throw? I tried all the things people were saying on the internet: a full reset on a menu hidden in the printer; cleaned t

  • ipSec through my WRP400 seems to slow down the box.

    Recently, I went on my WRT54GL for a WRP400 and now when I initiate a VPN connection to my work through the AT & T "dialer" (just not go there - not the choice), my router freezes.  I remember correctly, it didn't do it the first time, but I could be

  • QML Beta 4 Preview error

    When an open one hour file the first qml I have a popup of warning telling me that I have the QML preview is unaivalable. It's ok since I still have the QML editor with syntax coloring, etc... But the second time I open a file QML, the freezing of th

  • V400 of pluralistic media

    Hello, comrades enginers! I would like to get Advanced multi-party licenses. As far as I know, 25 13 licenses these licenses screen provides Telepresence Server.  I was careful to the multi-party v400 server as the CTS hardware. Is multi-party v400 m