Adding menu items to Contacts

I have an application that I want to add to the Contacts Menu using MENUITEM_ADDRESSBOOK_LIST. In the Simulator, I run the application and it adds to the menu (using the example code for the function t.test with). Whenever I run it, it adds another instance of the menu item. Now the questions:

(1) the user should click on this app to add it to the menu?

(2) what happens when the device is restarted? They will have to run the application again to add it to the menu yet?

(3) how can I determine that menuitem has already been added and not keep adding every time that the application runs?

Thanks for the help

You must configure your application as an application 'auto start' (see the project properties in the JDE).

You have two entry points - the "automatic" Startup entry point and the GUI entry point.

You will add your menu item in the "automatic" startup code

See this link:

http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/How_To_-_Confi...

There is also an example of this in the developer's guide.

Tags: BlackBerry Developers

Similar Questions

  • Constant ApplicationPermissions for adding menu items

    What constant in ApplicationPermissions handles items menu added to the native BlackBerry applications?

    Too bad. ApplicationPermissions.PERMISSION_CODE_MODULE_MANAGEMENT seems to work quite well.

  • Problem when adding menu item

    Hi all

    I'm working on a plugin for adobe illustrator CS6 using adobe CS6 SDK. By using this plugin, I need to add a naked me in file Menu of Adobe Illustrator.

    I used the following code to it:

    ______________________________________________________________________________

    SPBasicSuite * mBasic = message-> d.basic;

    AIMenuSuite * sAIMenu;

    mBasic-> AcquireSuite (kAIMenuSuite, kAIMenuVersion, (const void *) & sAIMenu);

    SPPluginRef plugin;

    AIPlatformAddMenuItemDataUS menuData;

    AIPlatformAddMenuItemDataUS pluginMenuData;

    const char * menuGroupCStr = "MyGroup";

    const char * menuCStr = "Menu"... » ;

    const char * pluginCStr = "MMMEEENNNUUU";

    menuData.groupName = kEditMenuGroup;

    menuData.itemText = ai::UnicodeString (menuCStr);

    pluginMenuData.groupName = menuGroupCStr;

    pluginMenuData.itemText = ai::UnicodeString (pluginCStr);

    const char * Key = NULL;

    Options AIMenuItemOption = kMenuItemIsSeparator;

    AIMenuItemHandle * menuItem;

    AIErr err is sAIMenu-> AddMenuItem (message-> d.self, NULL, & menuData, 0,) & g-> showMenuIte m.;

    So goto (error);

    ______________________________________________________________________________

    But I have nothing output. Can anyone of you please suggest me what should I do in this code.

    Hello Shyam,

    you are using CS4, right.

    I did it with this.

    If you want to add a custom menu just download AI SDK CS4 and MenuPlay available in the following project.

    I don't think that after using we needed no help.

    If necessary, please update the post I will help you for sure.

    Concerning

    Hard

  • Firefox 9.0.1, Application JavaScript error on adding menu item? Dictionary and directory of fonts.

    Firefox can operate normally and load pages normally, but does this affect it on anything with Firefox?

    They have developed whenever I load Firefox, and clicking on the 'OK' button on each of them, Firefox will load.

    I have screencaps of it, http://imgur.com/a/nZUn5#2

    Other information:
    Add - ons, I was running are Ad Block Plus 2.0.3 Ad Block Plus pop up edition 0.3, 0.9.10 download status bar, element hiding Helper for Ad Block Plus shortcuts 1.2.1 Google 2.1.8.1, JavaQuick Starter 1.0, Microsoft .NET Framework Assistant 0.0.0 Print Edit 7.1 QuickDrag 2.1.3.21, QuickFox Notes 2.7.1 ReminderFox 1.9.9.5, TableTools2 1.15, pilot test 1.2 and 20111107 WOT.
    In addition, icons QuickFox Notes disappeared when I loaded Firefox when the problem occurred.

    If this problem has already been addressed in some way, please link to the article/post/page, on which it can be found.
    Thank you for your time.

    You can try to reset the preferences via the starting window of the Save mode.

    • Help > restart with disabled modules

    Create a new profile as a test to see if your profile is the source of the problems.

    See "basic troubleshooting: a new profile:

    There may be extensions and plugins installed by default in a new profile, so check that in "tools > Modules > Extensions & Plugins" in case there are still problems.

    If this new profile works then you can transfer files from the old profile to the new profile, but make sure not to copy corrupted files.

    See:

  • BB Maps Menu item is added several times

    Hi, I'm currently adding an ApplicationMenuItem custom to the Maps Application. However, no matter what I do, the menu items run method is never called, the place my application main method is called and the menu item is added once more to the menu card. In other native applications, it worked perfectly, just in the Maps app it seems not working. I also tried the information provided to http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800703/How_To _... but still got the same results. I have another point of entry to my request so that the menu item is added to the start of blackberry. If I remove the other entry point and add the menu item when the user starts the application in the bb menu, it works. I would be grateful any entry on the subject I would like to work with the other entry point. I use Eclipse with the JDE Plugin 1.0.0.67 with component Package 4.2.1 (also tested with 4.5.0). Thanks for your help, Lukas

    I found the solution to my problem in this post:

    http://supportforums.BlackBerry.com/T5/Java-development/adding-menu-item-to-file-Explorer/m-p/223514...

    Add the same argument that I use in my menu entry point (to differentiate the delivery of system boot) to the ApplicationDescriptor solved the problem.

    Thanks again for your good help.

  • How - add a menu item custom application BlackBerry

    I'm working on an application that creates a custom in various standard Blackberry applications menu item.
    On the platform of v4.2.1.72 8800 2.3.0.54 everything works fine all the Blackberry PIM application that the spectacle of my menu item mail application custom.

    When I load on platform 8330 v4.3.0.124 3.1.0.71 none of the custom menu to the top and on the OS of the Pearl Flip is v4.6.0.48 4.1.0.13 only e-mail and todo/tasks application view my custom menu others do not show my menu item.

    I tried to compile my app in the various versions of the JDE, but always the same question.

    Am I missing something for the new OS?  I followed the knowledge base article "how - to add a custom BlackBerry application menu item.

    I tested it on 8800 v4.5.0.52 platform 2.7.0.66 and Mail and Memo shows no custom menu item in Contacts, calendar and ToDo my custom menu appears.

    Thank you...

    BTW do you know if I can add menu browser and retrieve the content of the web page?

    No, this is not supported.

  • Add the menu item for the sequence of batch processing?

    Hello

    I created a folder level script that runs at startup of Acrobat. The script adds a menu item, that when clicked, calls another function.

    I wonder if I can create a batch sequence and add a menu item for that also? I mainly want to avoid going through the whole advanced-> processing statement->... Processing batch-> find the command sequence, and then click Run.

    I've seen a lot of examples for adding menu items that call the folder level scripts, but nothing about batch sequences. Has anyone already done this?

    Thanks in advance!

    You cannot create an element of a sequence of commands menu. Nearest you

    can get is to open the batch sequences window, using the execMenuItem()

    method and "BatchEdit" as the name of the command (I'm not sure that it is still

    the same in Acrobat X).

  • reset the settings to the printer... still no print... more haven't added any items to the menu bar... they went

    reset the settings to the printer... still no print... more haven't added any items to the menu bar... they went bar & customize window title bar changed...

    By default Firefox will be "reduced to adjust." You who can disable in layout in a regular window or in print preview, but it's hard to call Preview in the window pop up in print, because the menu bar and the toolbar are removed. If it is a common problem, you can use a different add-on (!) which puts the print preview before printing and Page Setup on the shortcut menu.

    I have not used for some time, but I hope that it always works in Firefox 29: https://addons.mozilla.org/firefox/addon/printprint-preview/

  • How to remove the added by BrowserContent menu item

    I have an application where a browser obtained from browserContent.getDisplayableContent () field is added to the main screen. This adds 'Selection Mode', 'Page View' and 'Find' menus. How can I get rid of these. I overrode protected makeMenu Sub (menu Menu, int for example), but the menu items do not fade.

    protected void makeMenu(Menu menu, int instance)
    {
        Field focus = UiApplication.getUiApplication().getActiveScreen().getLeafFieldWithFocus();
        if(focus != null)
        {
            ContextMenu contextMenu = focus.getContextMenu();
            contextMenu.clear();
            this.getContextMenu().clear();
        }
    }
    

    My request is basically similar to the example of BrowserFieldSampleApplication.java, which is part of the SDK.

    Thanks for your help

    I managed to solve it this way. In my class that extends the screen, I substituted makeMenu():

    protected void makeMenu(Menu menu, int instance)    {        menu.deleteAll();     menu.add(myMenuItem1);        menu.add(myMenuItem2);        super.makeMenu(menu, instance);    }
    

    The deleteAll() method removes all menu items - then I add my own menu items. Finally, super.makeMenu (calling) adds the "Close" menu item

  • Adding Start Menu items. How the security he she?

    Hello

    I installed two apps (Metatrader 4.0) on 2 separate files and during the process of installation in two different Start Menu items (names). Only is shown in my Start Menu. I have already tweaked apps and have both appear in my Start Menu. I just (very) recently did a clean install of my system. I have 2 external hard drives and network drives 2. I had problems with the owners, the permissions and access rights but have finally fixed (see my post - http://answers.microsoft.com/en-us/windows/forum/windows_7-security/how-do-i-reset-the-security-settingsuser/11d336a3-5d72-4168-98b1-f00977418c40).

    My question: how save is just go to C:\Program Data and add the items in the Start Menu for the second installation I've done. The one that is currently contained in C:\Program Data. I need to change the Windows registry too?

    Thanks for the tips. I need her and don't want to ruin things once again. BTW, I'm running Windows 7 Pro 64 - bit SP1. I never realized that Windows 7 applies a strict policy of ACL (Access Control List) and now I'm a little more careful.

    See you soon.

    Cmaker3

    Good installers you ask if you want its application shortcuts visible to all the users or just for the current user. Shortcuts are then placed according to your answer. If your installer does not ask this question then you can fix things later by adding or removing shortcuts to the subfolder of program data. It is a matter of convenience, not 'security '. The presence or absence of a shortcut has no effect on the functioning of Windows.

    There is no need to hack the registry when you place a shortcut.

  • Add a new page without adding a new menu item

    So I am using a theme of muse, and by default, when I add a new page, it automatically adds a new menu item.  I tried to delete the menu, but no luck.  Any suggestions?

    While in PLAN mode right click on the page that you want excluded from the menu and under MENU OPTIONS, choose PAGE OF MENU of ITEM to EXCLUDE. I hope this helps.

  • Someone knows why "adding / filter links ' are gray when I try to link a menu item?

    I tried manual menu mode, I went to pages that I want to reassign and set the options of the menu 'include the page without hyperlink '.

    while I could try the reallocation manually... cannot bind to do anything unless I go to a complete dynamic menu... problem is, I want that these menu items.

    but want to use anchor links and wink-scroll on one page in a part of my site... If I highlight ordinary text, no problem. If I connect a graph,

    No problem. Menu is a go though...

    Hello

    Just to confirm, are you facing problems linking your menu manual?

    If so, make sure that you have the selected menu item, not the text in there.

    If it's something else that you are having a problem with, well want to share a screen shot, it would help to understand the problem.

    Concerning

    Sonam

  • Added keyboard shortcuts for menu items created by the script. Is this possible?

    Hi all

    I wanted to create a custom script menu and assign (on the numeric keypad) shortcuts to the menu items so that I could run a script with small changes rather than change a few (currently seven) scripts separated and assign a shortcut to each of them. But now, I realized that the custom menus are not visible in the "Keyboard shortcuts" dialog box (What a disappointment!)

    Am I missing something here? Or is there a workaround?

    1.jpg


    My idea was to trigger the main script - floating Tables.jsx - from the Manager menu item from the menu title as an argument.

    var tableMenu = app.menus.item("$ID/Main").submenus.item("Table");
    
    // "Floating Tables" sub-menu
    try {
        var subMenu = tableMenu.submenus.item("Floating Tables");
        subMenu.title;
    }
    catch(err) {
        var subMenu = tableMenu.submenus.add("Floating Tables", LocationOptions.AT_END);
    }
    
    var topLeftAction = app.scriptMenuActions.add("Top Left");
    var topLeftListener = topLeftAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var topLeftMenuItem = subMenu.menuItems.add(topLeftAction);
    
    var topCenterAction = app.scriptMenuActions.add("Top Center");
    var topCenterListener = topCenterAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var topCenterMenuItem = subMenu.menuItems.add(topCenterAction);
    
    var topRightAction = app.scriptMenuActions.add("Top Right");
    var topRightListener = topRightAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var topRightMenuItem = subMenu.menuItems.add(topRightAction);
    
    var bottomLeftAction = app.scriptMenuActions.add("Bottom Left");
    var bottomLeftListener = bottomLeftAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var bottomLeftMenuItem = subMenu.menuItems.add(bottomLeftAction);
    
    var bottomCenterAction = app.scriptMenuActions.add("Bottom Center");
    var bottomCenterListener = bottomCenterAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var bottomCenterMenuItem = subMenu.menuItems.add(bottomCenterAction);
    
    var bottomRightAction = app.scriptMenuActions.add("Bottom Right");
    var bottomRightListener = bottomRightAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var bottomRightMenuItem = subMenu.menuItems.add(bottomRightAction);
    
    var backToTextAction = app.scriptMenuActions.add("Back to Text");
    var backToTextListener = backToTextAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var backToTextMenuItem = subMenu.menuItems.add(backToTextAction);
    
    function FloatingTablesHandler(event) {
        var args = [event.parent.title];
        app.doScript(mainScriptFile, ScriptLanguage.JAVASCRIPT, args, UndoModes.ENTIRE_SCRIPT, "\"" + scriptName + "\" Script");
    }
    
    
    
    
    
    
    
    
    
    
    


    The main script reads the argument as follows:

    alert("The argument -- " + args[0]);
    
    


    If my memory is good, of Rorohiko's APID ToolKit can create "Assignable shortcut" menus I don't know this for sure at the moment because these menus a long time ago.

    BTW, the question was asked here, but he has failed.

    Kind regards

    Kasyan

    Hi Kasyan,

    If what you're asking, is if it is possible to assign a keyboard

    shortcut in the usual way with a menu created by a script item and then

    of course, of course you can.

    Add the menu item and then assign some k.shortcut you want-

    you will find your menu items in the 'Scripts' category in the keyboard

    Shortcuts dialog box.

    Ariel

  • problem adding the shortcut menu item

    I want the form of users must be open when you press Ctrl + U.

    I made after the entry into fmrweb.res which did not work.

    85: 2: "Ctrl + U": 11022: "FORM of USERS.

    The property of acceleration for the menu item has been ACCELERATOR1.

    How to add a shortcut for this menu item shape in oracle 10g.

    Shortcuts for menus are used in forms according to the Windows Standard (such as Alt "Key" to open the main menu and then a second 'key' to select the option). You do this by placing a & (and commercial) in the text to menuitem (before the letter you want to use as a shortcut)

    You can use any other key mapping comes from the frmweb.res file to make a CALL_FORM in the trigger appropriate (for example, to KEY - F1)

  • Adding a menu drop-down menu item?

    Can I add a menu drop-down menu item of the interactive form list drop-down opening page.

    Doug,

    Ah, this is called the Menu Action and at this stage there is no way to do - at least not a supported method. You could always manipulate the list 'apexir_ACTIONSMENU '...

    It would make an enhancement request well.

    Kind regards
    Dan

    http://danielmcghan.us
    http://sourceforge.NET/projects/tapigen
    http://sourceforge.NET/projects/plrecur

    You can reward this answer by marking as being useful or correct ;-)

Maybe you are looking for