How to list the PHONE menu items

Hello.

I am building an app that injects the menu and the wheel to the up and down events to access elements of the PHONE menu.

To be precise, in appeal, at any given time my application needs to choose an item from this menu.

So I inject the MENU, then the Dial-UP (for a step or two), then ENTER.

Now, I need to be sure that I pressed the right menu item.

This is why I would like the ApplicationMenuItemRepository.MENUITEM_PHONE to the list

Is it possible to do?

There is no method that returns the menu of a BlackBerry application or the item currently selected in the menu.

Tags: BlackBerry Developers

Similar Questions

  • How to avoid the default menu items?

    All of hell

    I'm developing an app for BlackBerry handheld.  I add menu items that are specific to the different screens of my application by substituting the makeMenu (.) method. I DON'T want to include default menu items...

    Select Mode
    Page view
    To find
    Copy
    Call 12093...
    12093 SMS...
    12093 MMS...
    Add to Contacts

    Now I do menu.deleteAll () in the first line of the makeMenu (.) method. Suggest me if this isn't the right way?

    It deletes all the elements default menu above.

    Now, in the application, the specific menu item get highlighted based on the next action of logic, that I do a menu.setDefault (menuItem).

    But for the instance when some contact number is selected on the screen (usually 'call' option get highlighted on the menu, but here we have removed) the highlight of the menu according to my works item IS NOT pathological and it always shows the menu first point highlighted.

    I suspect it might be because the default menu items have been added (by program then deleted). That's why I decided to override the onMenu (.) method where I'll call makeMenu (...) to the new instance of the Menu (that are not default menu items), so I'll see the menu using menu.show () and then return true.

    Now by the fix above, the highlight of the menu on my terms item works fine regardless of some contact number is highlighted on the screen or not, BUT the menu is displayed on the upper right and not on the bottom left where it should be.

    This approach is correct, or there is a better way to approach this?

    Thank you

    Mukesh

    OK guys... I had the problem!

    The problem is that if any time a highlighted menu item is removed (as in our case, menu item 'Call' is deleted by menu.deleteAll (()) the priority agenda menu get highlighted. This is just the reason why the first menu item get highlighted if the phone number is selected.

    To fix this, I highlight the appropriate menu option by setting up priority for her.

  • How to disable the browser menu items?

    IM using the browser session to display images, but its menu has many elements that I don't need. Is there a way to remove these menu items in the menu of the browser?

    BrowserSession b = Browser.getDefaultSession();
    b.displayPage("file:///" + filePath);
    

    There is unfortunately no way to remove items from menu standard browser.

    There is a way to add additional menu items, but there is no way to delete those that already exist.

  • How to create the active Menu item

    I am trying to create a menu with this code item:


  • Several list drop-down menu items to fill the area of separate text even. How can I do?

    Acrobat x Pro, I have figured out how to create a dropdown menu with items that will populate a separate text box, but how do I get several menu items to fill the text box. For example. My menu has three items, cat, dog, mouse. I choose the cat and it appears in the separate text box (hooray). Then I choose "dog" in the same menu. I would like it to appear in the text box even my previous selection 'chat '. Is this possible? I am very new to JavaScript, any help would be greatly appreciated! Thank you

    Change the last line:

    getField("Text_field_1").value += "" + aQuotes [point];

  • dynamically create and destroy the custom menu item

    I have a standard TestStand platform that I use on multiple systems.  On some systems, I have a few sequences of calibration and I would like to have the Update menu to have the RunSequence of these sequences of calibration.  I know how to manually create these menu items, but they are no longer valid for some sequence files.  I would use the sequence SequenceFileLoad to dynamically create menu items and the SequenceFileUnload to destroy these menu items.

    I've played around with the API, but cannot determine the correct path to get to the create and destroy the custom menu items.  Does anyone know how this can be done?

    Thank you

    Matthew

    Yes, see the online help for the members of the following APIs:

    Engine.GetEditTimeToolMenuItems

    EditTimeMenuItems

    EditTimeMenuItem

    Basically, you get a collection of tool using Engine.GetEditTimeToolMenuItems () menu items and then call EditTimeMenuItems.Insert () or EditTimeMenuItems.Remove (). If you insert a you get returns an EditTimeMenuItem object on which you can change the settings.

    In addition, since it has an expression to hide items in menu tool, you need not necessarily to destroy, you can hide them instead.

    Hope this helps,

    -Doug

  • Lists all running menu items

    Hello

    If I have a State Machine controlled by an Enum with several elements, when I wire the Enum to a Structure of box and select 'Add a case for each value', the Structure of the case will be a box for each element of the Enum. As simple as that.

    Is it possible to have the same behavior with the execution menu items? In other words, can I list all the items in the run menu and this "list" related to a Business Structure? It would be perfect to avoid typing by hand of each element.

    Thank you.

    Dan07.

    This kind of functionality (dynamic service selection, performance) is simple, if instead of a structure of the case, you are using LabVIEW with screws classes dynamically a reshipment to replace the structure of the case.  See the examples in LabVIEW and on site assistance OR to learn the fundamentals of LabVIEW classes.  Special attention to dynamic distribution.  There are several examples of exactly this type of architecture.  Here is one of them.

    Note that this type of show is very different from the classic programming LabVIEW and can take a bit to get your head around it.  Once you do, you won't want to go back.

    Good luck.

  • How to use the context menu of the 10 Blackberry in my app using Air

    Hey please help me

    How do I use the native bb 10 context menu, I got contextmenuevent class to access the events, but I don't know how to add the context menu as long press on any image.

    Is there a documentation or extract is available?

    There are several threads on this and can be found from the search field. Here is the one who can answer your question:

    http://supportforums.BlackBerry.com/T5/Adobe-AIR-development/BB10-adding-context-menu-to-list/TD-p/1...

  • Getting context object null when using the custom menu item.

    Hi all

    I implemented a sample application to add menu item custom to the list of messages and we test this build on 9000 os 5.0.0.41 Blackberryy 1

    On BB 9000, we have 2 message inbox, A like Blackberry by default message inbox and B as long as the Inbox for the e-mail account, I have set up on BB 900.
    I implemented the menu custom application to add menu on the message list option.
    I see this option on both my inbox, the question that I am facing is when I click on the menu item by selecting the email in the message of default A Blackberry inbox I can get the context object were like when I click on the same message next to the Inbox B I'm always get the context as a NULL object.

    Below is the code I used to add the custom menu item.

    Public Shared Sub main (String [] args)
    {
    If (args! = null & args.length > 0) {}
    call from another entry point. Add menu items mark as Spam and mark as suspects.
    {if(args[0].) (Equals ("GUI"))}
    try {}
                            
    create menu items.

    MyMenu ApplicationMenuItem = new EmailFile();
    Add the menu item in the list view and send by e-mail.
    Amir ApplicationMenuItemRepository = ApplicationMenuItemRepository.getInstance ();
    amir.addMenuItem (ApplicationMenuItemRepository.MENUITEM_MESSAGE_LIST, mymenu);
    } catch (Exception e) {}
    Utility.debugLog (try (), CLASSNAME, 'hand', Utility.EXCEPTION_INFO);
    System.out.println("Error:"+e.ToString());)
    }
    } else {}
    show on the application of spam...
    AppMain _theApp = new AppMain();
    _theApp.enterEventDispatcher ();
    }
    } else {}
    show on the application of spam...
    AppMain _theApp = new AppMain();
    _theApp.enterEventDispatcher ();
    }
    }

    Can we know what is the problem in my code or something I'm missing.

    Thanks in advance.

    Navneet Gupta.

    application menu items have been bugged for ages. There is nothing you can do except change your workflow. in some cases, you can recover the app screen and trying to extract something of these fields, but becomes more difficult in the new OS versions because of custom fields used by rim.

  • How to get the phone in ongoing call screen

    It is a follow-up on the menu of the phone not shown thread.

    I checked with the KB and found an interesting topic: How - to upgrade a screen on the main event Thread

    My original question (as can be seen in the thread has already been mentioned) was to know how to draw something on the screen of the phone.

    Example:

    (1) a user accepts a call.

    (2) my application implements PhoneListener and in callConnected() just draws a picture on the top of the phone application

    (3) all the features of the phone (menu of the phone for example) are preserved.

    The article mentioned shows that it is possible to draw something on a screen.

    How can I get an instance of the phone screen?

    Here is my proposal (but it does not work):

    public void callConnected(int arg0){ UiApplication.getUiApplication().invokeLater(new Runnable()        {
    
                public void run()            {                Screen screenName = UiApplication.getUiApplication().getActiveScreen();                //Perform screen changes here.                Graphics g = screenName.getGraphics();                g.setColor(0xFF8080);                g.fillRect(10, 10, 100, 100);                //Calling invalidate() on your screen forces the paint                 //method to be called.                 screenName.invalidate();            }        }); }
    

    How to make the getUiApplication() to pick up the phone?

    Do you ever feel like you're talking to yourself ?

    That's what I had:

    //Calling invalidate() on your screen forces the paint                 //method to be called.                 screenName.updateDisplay();                //screenName.doPaint();                //screenName.invalidate();
    

    Why the work of updateDisplay doPaint (as well as his brothers and sisters invalidate()) does not work?

    But, alas, my efforts have been in vain.

    The 'red square' disappears when something is painted on them -ruins it a bit.

    So, I guess, my quest continues.

    Someone has an idea how draw a persistent image on the VoiceApp and always to enable all the features of VoiceApp (menu, for example)?

  • Get the current menu item selected

    Hello

    I use Jdeveloper 11.1.2.3.0

    I want to set the property collapse of the separator group based on the selected menu item by using the expression language.

    How to get the current selected menu item.

    Best regards

    Haytham Talha

    Hello

    Here is an example using setPropertyListener to set the selected item and use it to collapse of panelSplitter:

    
         
              
                   
             
            
              
           
         
                   
    
    
         
              
         
         
              
         
    
    

    Jean Lou

  • Drop menus appear on your mouse on the main Menu items?

    Sorry if this seems obvious, but I am new to Muse. After viewing all the tutorials I can't display the drop down menus on overview of the main menu items (to display submenu choice on the main categories page).

    There must be an easy way to do it. Can anyone offer advice?

    Thanks in advance.

    Hello

    If you have subpages created for top level pages and put you in a menu, while also changing the "Menu Type" to "All the Pages" in the menus, it should appear the submenus when you hover over the top level menu items. Here's a little video that I created to show you how it works: http://screencast.com/t/jEAhCpL8x

    I hope this helps.

    See you soon

    Parikshit

  • Redirect the user to the different menu item

    Hi guys,.

    JHeadstart 11.1.1.3.35

    I use the JhsTree menu structure. One of my menu items is a wizard that goes directly to the insert mode, so at the end of the wizard, I redirect the user to a different group (menu item). The problem is that while the new menu page is displayed to the user, the previous menu item (Assistant menu) is still selected, so that if you try and you reenter the Wizard menu item, nothing happens as the structure of the menu and the page are out of sync (and the menu believes that you are already on the page of the wizard even if you're not)

    My question is, also the creation of a navigation to a different menu item rule, how can I programmatically change the selected menu item?

    See you soon,.
    Brent

    Brent,

    No, you can remove these goods safely.

    Steven Davelaar,
    JHeadstart team.

  • How to position your script menu item

    Hello

    How position you your menu item to the right place.

    I want to create a new document type.

    How can I get my menu under the new submenu item.

    Thank you.

    P.

    The MenuItem add function shows you how:

    Add MenuItem (associatedMenuAction: MenuAction[, to: LocationOptions = LocationOptions.AT_END][, reference: MenuElement] [, withProperties: Object])

    so all it takes is telling your LocationOptions.AFTER add the new menu item.

  • I would like to know how to encrypt the phone to stop access to my data

    I'm fine back my iPhone 5 for a 6sPlus of the iPhone. Before doing so, I would like to know how to encrypt the phone to stop access to my data. I was told that everything simply erase the data without actually deleting...

    < re-titled by host >

    What to do before you sell or give away your iPhone, iPad or iPod...

Maybe you are looking for