How to persist a delete menu item?

I'm looking for help on how to remove an item from the menu of my application. Specifically, how to keep my removal of the menu item

The code example below, removes the menu item, but when I restart the application, the menu item is back.

Any help on what to do after that call removeMenuItem is appreciated.

_AddLicenseItem MyMenuItem = new MyMenuItem();

addMenuItem (_addLicenseItem);

...

///////////////////////////////////////////////////////////////////

Inner classes

///////////////////////////////////////////////////////////////////

private class MyMenuItem extends MenuItem

{

MyMenuItem() private

{

Super ("my Menu", 0 x 00010000, 13);

}

public void run()

{

removeMenuItem (this);

}

}

Logic for me!

For this mark as resolved, you can follow the instructions in help, link here:

http://supportforums.BlackBerry.com/rim/help_faq#solution_whatis

Tags: BlackBerry Developers

Similar Questions

  • How can I disable the menu items using manu, Photoshop cs6?

    How can I disable the menu items using manu, Photoshop cs6?

    I packed Photoshop cs6 using AAMEE CS6.

    I need some menu items to disable.

    can someone please process to do, or what records or files need to edit.

    Enjoy the immediate response.

    Thanks in advance.

    There is another discussion on the same topic: http://forums.adobe.com/thread/1234967?tstart=0

    Perhaps the same company has contracted two of your companies

  • How to rename a Start Menu item

    How can I rename a Menu entry/item start?

    Thank you Daniel. This clarifies things a bit. However, I have a folder called additional Applications in which I place all my 'Install No.' / 'Portable' applications.
    In this case, it seems that the Start Menu entry may be different from its parent folder or the name of the file. For example, I have a «Portable' called «ColorCop» application The containing folder called "ColorCop" and the file is "colorcop.exe", and generated Start Menu entry is "multi-purpose color picker.
    Thus, it seems that in this case, the start entry Menu should be being obtained in the actual .exe file.
    Therefore, the apparent lack of a way to change the Start Menu entry appears to be a failure in Windows 7.

    Hold the SHIFT key while right-clicking on the item and you will get an advanced context menu that includes "Rename".

    There are other ways, but it is the fastest, and I found it just by searching in another tab, while I was looking for the answer myself. You can also ' right click > properties > general tab "and rename it there, too.

    For example for those who do not understand the problem, I use Virtualdub and VirtualdubMod. Neither of which has a traditional installer. If I pin VirtualdubMod on the Start Menu, because it is based on Virtualdub, he names the same. And as you can see by default there is no "Rename" from the context menu (unless you hold down Shift, in other words).

    As I said, I was looking for the answer myself and found this thread, so thought I'd leave this here for the next guy.

    -edit - Heh, don't think that the "propose as answer" would actually work on my own post.

  • How to add a global menu item?

    Hi all

    I would like to know how to add a menu item for all the menus of the blackberry device. Just as the screen mucher application, you will find the option "Display strange".

    I googled a lot and has not found an appropriate answer.

    Thanks in advance

    Hello

    Do you mean menu added to the device. Check these api
    ApplicationMenuItemRepository and ApplicationMenuItem

    Kind regards
    Priyanka

  • 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.

  • Air desktop application: how to make a "BOLD" menu item?

    Hi, I use Flash CS6 to develop a desktop AIR for OSX application. I created my NativeMenu and other Help menu, but I can't find a way to make the first "BOLD" menu item, like a real OSX application. So far, the little I found about it always called Flex, Flash not. Any tips?

    Thank you.

    You can't control how the operating system chooses to display, of NativeMenuItem.

  • How can I add new menu item in the context Menu of Flash CS6? (Not ActionScript)

    Hi all!

    I want to add my custom here menu item. I did the script jsfl that calculate eveyrting I need. I want to add the custom for her menu item. How can I do this?

    I see you there 'Generate Sprite Sheet' - I could do the same thing?

    question.png

    Hello

    The only places where you can add separate menu options lies in the command menu or add new extensions that appear in the windows-> menu other panels. There is no other way in which the menus can be added without being replaced by the Flash Code.

    For more information about adding separate entry into the menu commands or the Windows menu.

    (Menu) - add the jsfl script to C:\Users\\AppData\Local\Adobe\Flash CS6\en_US\Configuration\Commands

    and that automatically will be appear on the Menu commands on Flash raises.

    (2) add a (panel) for the C:\Users\ Flash SWF\AppData\Local\Adobe\Flash CS6\en_US\Configuration\WindowSWF folder.

    Thank you and best regards,

    Roger Simon

    Adobe Flash Professional 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.

  • How to a add a menu item for the depeneding menu existing email on the subject of the e-mail?

    Hi all...

    I'm new here and I need your help... Please

    I'm trying to add the menu item to the email existing menu depeneding on the email... I assumed using

    ApplicationMessageFolderRegistry togather with shops and Session but could not establish the code...

    any help please...

    Thank you

    Please mark the topic as solved, then.

  • 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.

  • How to remove a submenu menu item from a master page?

    I can't remove an item from a submenu to a menu on a master page. I don't know where or how it was created, but simply by selecting it and try to remove it, does not work...

    The submenus are generated by the structure of your site. Delete the page or disable menus with context menu. If it is not a page, to temporarily change to the structure of the site and then it return to force the Muse of discount, it could be a little problem.

  • selected such as copy or delete menu items stay on the screen until the pc is restarted what is the problem

    When a menu option is selected in the windows Explorer, such as copy or delete it stay on screen sitting in front of any program that is running and is not removed until the pc is turned off.

    All suggestions received with joy

    Hi Keith,

    ·         Have you updated the video drivers for the computer?

    Log on to the computer manufacturer website and update the latest video drivers. Check to see if it helps.

    How to manage devices in Windows XP

  • How to bind a spry menu item to the script for mail chimp campaign

    I already have a site with a spry menu upward. My customer wants to add a link to an e-mail account of chimpanzee for a campaign newsletter.  Chimp mail offers a script to do their campaign newsletter without an administrator log in. How can I associate this script with a submenu item?

    I don't know that a menu link is appropriate for this.  I think MailChimp gives you a script to integrate a form into your web pages.  The obvious place for it would be a sidebar, header or footer tag.

    Better integrated registration forms | MailChimp Email Marketing Blog

    Nancy O.

  • How to create the active Menu item

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


Maybe you are looking for

  • iPhoto for pictures

    MacOS Sierra will update my photos from iphoto? I always use the iphoto on my current iMac. The last update from Apple (pre Mac OS) had problems with photos do not import not titles and records resulting in loss sevice... years in folders... and phot

  • Firefox uses port 80 on my XP PC?

    I hate to be lame, but I can not use WAMP as installed on my XP machine (I have two Win 7 PCs, but I'm hoping to re - develop a Web site on the XP machine). Apache 2.2 is installed, as well as an earlier version of WordPress, known for work on XP mac

  • EliteBook 8440p: problems of Expansion RAM HP 8440p

    I recently decided to upgrade the memory on my EliteBook 8440p. After reading the form of RAM required, I bought one of these: http://www.ebuyer.com/737970-kingston-4gb-1333mhz-204-pin-cl9-ddr3-sodimm-non-ecc-unbuffered-1-5v-me... Once the new RAM is

  • How to get a Skype to go number

    I want to get a Skype to go number. Supported by Skype is very poor and difficult to get information

  • DVD burned on that previously played iphoto will not play now

    DVD that I burned on iphoto and worked previously stopped working.