Location of menu items

Hi all.

I know how to locate my menus, but what about this scenario:

(1) I create an application in A locale (where A is not part of the set of supported regional settings)

(2) I would like to insert a menu to the native menu of ApplicationMenuItemRepository.MENUITEM_ALARM (for example) item

Now. I would now like to the locale of the string element of menu "Change Date/Time.

Basically, I need to be sure that exactly, item of menu "Change Date/Time" is not in the list of MenuItem, but I can't count on the string itself (or can I?)

So is there any ID MenuItem (menus natives) the bb device uses to retrieve a translation of its resources that I could use so I don't have to depend on the location?

(I know I could store the string 'change Date/Time' in all languages supported (somewhere around 20 that I counted the bb JDE 4.5.0 API documentation) then try to match, but what happens if bb begins taking over several languages?)

Thank you

It's not a BlackBerry API to do this directly.  You could use Locale.getDefaultForSystem () to the current active local setting on the BlackBerry.  This could eliminate a part of string matching you (only search with the colloquial).

Tags: BlackBerry Developers

Similar Questions

  • Add the menu item to app mail as the mail message?

    Hello

    I know how to add menu items in the mail application, but can I add one, according to the mail message? I want to send a single something in an email and after that one of my applications.

    Is it possible to do? Perhaps a listener?

    Thank you

    Matthias

    Hello Matthias.

    Well, if I understand your message, it's that - you send mail with unique label or message (something unique added with the text of the message) and you want to add the menu item when a user opens the message.

    According to my understanding - I have a solution.

    We have a listener "VeiwExtendedListener", that provide notifications for new, open, close, reply, and forward.

    You can implement this listener and to open(), you get the instance of the message object, which is open.  With this object message get the content of the message, locate the tag unique in the text of the message, if it is in the message, and then add your menu item.

    I hope this will help

    Good luck

    -Nidhi

  • the menu item run method not called

    Eclipse SDK Version: 3.4.1

    BlackBerry JDE plugin for Eclipse Version: 1.0.0.50

    BlackBerry JDE component package Version: 4.5.0.14

    I added a menu item to the contacts list. I would like to get the context when the user clicks the menu item, but the run method is not entered. When the user clicks the item in the menu the main routine is entered with correct arguments. Should not called run with the context method? No exception is thrown.

     

    Import net.rim.blackberry.api.menuitem.ApplicationMenuItem;
    Import net.rim.blackberry.api.menuitem.ApplicationMenuItemRepository;
    Import net.rim.device.api.system.Application;
    Import net.rim.device.api.system.ApplicationDescriptor;

    SerializableAttribute public class BwMain extends Application {}
    private static final long APP_ID = 0xf46f5a7867d69ff0L;
    private static final String ARG_LAUNCH_BW = "1";

    public BwMain() {}
    long menuItemLocation = ApplicationMenuItemRepository.MENUITEM_ADDRESSBOOK_LIST;
    ContactsBwMenuItem menuItem = new ContactsBwMenuItem();
    ToolBarMenuButton.AddMenuItem (menuItemLocation, ARG_LAUNCH_BW, menuItem);
    System.Exit (0);
    }

    Public Shared Sub main (String [] args) {}
    If (args == null | args.length == 0) {}
    BwMain bwMain = new BwMain();
    bwMain.enterEventDispatcher ();
    }
    else {}
    System.out.println ("App launched from the menu");
    }
    }

    private public static Sub ToolBarMenuButton.AddMenuItem (long location, String argOfAppl, ApplicationMenuItem appMenuItem) {}
    Amir ApplicationMenuItemRepository = ApplicationMenuItemRepository.getInstance ();
    ApplicationDescriptor app = ApplicationDescriptor.currentApplicationDescriptor ();
    app = new ApplicationDescriptor (app, new String [] {ARG_LAUNCH_BW});
    amir.addMenuItem (location, appMenuItem, app);
    }

    private static class ContactsBwMenuItem extends ApplicationMenuItem {}
    {ContactsBwMenuItem()}
    Super (20);
    }

    public String toString() {}
    return "PC connection";
    }

    public Object execute (object context) {}
    try {}
    System.out.println ("input run method");
    } catch (Exception e) {}
    e.printStackTrace ();
    }
    Returns a null value.
    }
    }
    }

    You call system.exit() in the Builder before entering the EventDispatcher. I'm guessing that you add the menu item, but leave the application, and when the menu item is called it is more a reference to the context of the application and decides not to continue. The menu item will not remove itself when the application closes.

  • How can I move a single menu item? Whatever i, when I try to move a menu item, the entire menu will follow after.

    I kind of need quick help, is possible to do or what I need to do each button manually? I've looked everywhere but I can't find a way to do it.

    You can use the text panel and adjust the spacing, indent, etc.. As an alternative, you can create menu manual or go to the State of the links buttons where the design model requires menu items at different locations on the page.

    Thank you

    Sanjit

  • How to highlight the menu item based on the position of the scrolling page?

    Hello

    I am interested by learned how to achieve the effect in the upper left corner of this Web page:

    http://trashpixels.co/#one

    When you click on any of the six gray menu icons (grey rectangles), you scrolled down to the deep page and arrive at the location one or two or four or what you clicked on... it's easy. But how do I get the menu item (a rectangle) to be highlighted (change to green) to indicate the current position on the web page?

    Any suggestion would be appreciated

    Thank you

    Bradley

    Hi Bradley

    You can use the anchor links for menu items that would be would be the active state once that section of the specific page of scrolling.

    This video explains the process:

    https://www.YouTube.com/watch?v=qNsI6DHz5Co

    Thank you

    Sanjit

  • Missing the Menu item in the import Panel?

    I am using LR3 for over a year - last version 3.6. Without apparent reason, the menu item "Do the second copy" no longer displays in the import Panel. Imported files are copied to the specified location the last time that the item was available. I looked in all the panels help, but don "t find any way to disable the second copy function, or to manage the second copy function. I'm Mac 10.6.8.

    Hugh,

    When you right-click on one of the headers Panel on the right side of the input dialogue, is "File management" checked? If not, click it or click "show all."

    HAL

  • Disable or remove the menu item 'Print the Pages' in reader

    Hello

    I would like to delete (or disable) the menu item print Pages in adobe reader

    See the attachment for the location of the menu item

    Thank you

    Mike

    Is not possible.

  • Form of appeal in the Form10g Menu item

    I use the formula 10g.
    I created a menu module m1.mmb. I added a menu item to call the form f.fmx file.
    I set the command to call the form f.fmx, as follows:

    Begin
    run_product (FORMS, 'f', SYNCHRONOUS, DURATION, FILESYSTEM, ",");
    end;

    All files are in the same location.

    After the compilation of m1.mmb I have attached to the main.fmb form. When I call f.fmx form of main.fmb, it works fine. But when I try to call this f.fmx a menu item, it displays the following error:
    FRM 92101: There was a failure in the Forms Server during startup. This could haped due to invalid configuration.
    Please look in the log file of the web server for more details.

    When I try to know, it shows several Java error Exceptions.

    What is the main problem? What should I do? Could someone plase explain in details?

    Hello

    Try using OPEN_FORM integrated.

    OPEN_FORM('f', ACTIVATE, SESSION, NO_SHARE_LIBRARY_DATA);
    

    Kind regards

    Manu.

  • Messages arrive, but the "Inbox" or any other folder open even if the content still there (and almost all the menu items do not work)!

    Using last Thunderbird on Windows 7. Had problems with the operating system and had to use a system restore. When I opened TB, it displays the folders in the left pane, but the credits of "Thunderbird Mail-...» "and the 3 topics: E-mail; Accounts; and advanced features. None of the files would open. I used the "Search messages" function and has been able to show existing and new messages in the 'Inbox '. Also wanted to know if files are always in my 'profile'... and they were all there where they should be. (And almost all the menu items are disabled).
    I wonder if I need to reinstall Thunderbird... maybe the OS issues this morning - and restore - have corrupted or damaged key elements of the program?
    Thank you...

    System Restore is not always a very good thing for applications.

    Reinstall is unlikely to help. But if your accounts are all imap and that you do not have a lot of other data (address book, for example) in Thunderbird, you could start from scratch.

    But before that, you should try Thunderbird started in SafeMode https://support.mozilla.org/en-US/kb/safe-mode-thunderbird

  • I remember early versions of Firefox had a menu item by which you could share the link to a web page, you have read, what happened?

    I often read web page items that I would like to share with my friends. I think that once there is a menu item that allows you to send the link, using your own e-mail program, to a friend. That happened to her, or well, I remembered it from another browser? Your response is much appreciated.

    You can find it in two places now:

    (1) there is an icon for the function of email link that you can add to a toolbar. It is available in the collection of unused icons when you enter the customization mode. See: Customize Firefox commands, buttons, and toolbars.

    (2) If your toolbars and the menu graphics are already filled, you can use the classic file menu. If you don't regularly display the menu bar, you can press the ALT key, or press F10 to display temporarily. So he's under file > email link.

    If you have not used it for a while, you may need to configure Firefox to work with your favorite e-mail program or your site: change the program used to open links in e-mail. Unfortunately, the webmail configuration may be missing or glitch, so if it doesn't work, please post back on this site mail you try to use any other suggestions.

  • 3D "" on"" (nvidia Control Panel) crashes thunderbird if closing a thunderbird menu item. 3D off the coast? Thunderbird works again.

    Well plant? "If the opening of a thunderbird menu item and close, you get a"not responding"" WARNING and the only thing to do is to close the program. Windows 7 can't find a solution.
    This is just a warning.
    It took me a long time until I discovered that it is 3D. (reinstall a virusscanner, a point of restoring 3 times and a full system image)
    I realize there are not many people using nvidia 3d. So I don't expect any change by programmers.
    O, the first time I also had to restart windows after 3D ' "" No idea why it was that the first time.
    I already pulled the 3d module (what the hell he was doing there?) but that did not help.

    Hardware acceleration has been such a problem that the 38 coming version has a user interface in the advanced options to enable the use of hardware acceleration on and off voltage.

    Until then, it is the same job https://support.mozilla.org/en-US/questions/1012145

  • What is the menu item "Bring everything to the front ', and how to use it?

    What is the menu item "Bring everything to the front ', and how to use it?

    It's a selection in the window menu and means to bring all open windows of this application at the front and push all the windows open for other applications behind. This makes access to the easiest application windows. However, if you don't have that one window open in an application, then the menuitem does nothing.

  • Where is the menu item "update iTunes game"?

    I am on iTunes 12.4 (Mac) and the menu item "Update of iTunes game" has disappeared from this version. The music library on my Macbook Pro is not sync to the cloud to be available on my iPhone, even if both are signed on the same account and my game subscription is current/paid.

    Thank you, Apple, to make things more difficult that they'll be removing the menu option to force a sync

    Now, how do I just that... force my laptop to update the game?

    The button 'Update iTunes game' old responsibility now 'Updated iCloud music library' file/library.

  • How to use the script "click menu item" command on a menu item for an application that runs under another user?

    Hey everyone, quick question...

    I am trying to run this script:

    say application "System events".

    say process of "iTunes."

    click on menu item "Start Station" from the menu 'Song' to menu bar item 'Song' in the menu bar 1

    end say

    end say



    The idea behind this is to start a song selected currently playing station. I know, it's not hard to do it manually, but I want to be able to do it without having to call the iTunes app to the front. Now, this script works for my own iTunes app, but I have a second instance of iTunes connecting the second user on my computer at home (User2), with its own separate library and account and all. script I have works fine for an instance of iTunes under my user account, but I can't figure out how to specify which instance of iTunes, I'd like the script to work on.




    I want to emphasize as an FYI that i use.


    the shell script "connection f User2 /Applications/iTunes.app/Contents/MacOS/iTunes > & - 2 > & - &" with administrator privileges

    -to open my second instance of iTunes as User2



    is there a way to change the "process"iTunes"to say" something like 'process 'unix ID' say' and have the ID for each respective instance of iTunes unix?


    Let me know if I do not make sense... Thanks in advance to anyone who can help






    You can target a process of application using various properties of system events, for example:

    tell application "System Events"
      tell first item of (get application processes whose unix id is 15174) -- or whatever id
        activate --> needed when using GUI scripting
        get properties
      end tell
    end tell
    
  • Account menu items do not respond

    Is no longer, I can sync any media purchased iTunes and my iOs devices. All I get is the prompt to authorize but when I click on allow nothing happens except that the just prompt returns (dozens of times, think that I tried). There is no demand for apple ID or password.

    Worse yet, it's that I can play is no longer bought any media on my iMac (mid 2011) even though I am connected to my apple account.

    I also did the disconnect on my Macbook pro (mid-2014) retina error so now I can no longer connect to my account in iTunes on this system.

    I can also check my account details or use the menu to allow items.

    Furthermore, the menu items are not greyed out. They just don't do anything. (I checked this using the monitor activity and hands Off)

    Or buy anything in the iTunes store. The button 'Download' just greys out and then nothing happens.

    I ran through all the steps described in this document, but nothing helped.

    If iTunes prompts to authorize your computer when you try to read purchases on iTunes Store - Apple Support

    I also tried in safemode, turning all firewalls (built in and paws!) once again without success.

    Tried to restart my router network and airport: again no no is made.

    Tried the WIFI and Wired: nothing.

    tried to delete all the files in iTunes preferences: again no help

    Still unknown is just my Powerbook enjoyed pro (2009) works perfectly.

    All the computers running 10.11.5 and all versions of iTunes are 12.4.0.119 all iOS devices running 9.3.2

    I suspect an iTunes break bug, so I also presented a report bug to Apple, but if anyone has any other ideas. Please let me know

    I'm at my wits end.

    Edit:

    The old macbook pro introduced with the same problems as of today, where, as it operated normally yesterday. All have the same problem.

Maybe you are looking for

  • Merger of iMac Drive need defrag?

    Hello I have a question for a long time I use windows and os x, and when I was on windows I analyze my hard and when I delete a large file I see Create a lot of distance between the files, so that was delay to read some files and use the defragmentat

  • Tecra S1 - pilot and DVD issues

    Hello I recently bought this laptop which had a few software bugs from hangover of the previous user. He advised the DVD player was not working, but at the beginning it worked for me very well so I reinstalled windows to have a fresh start. As a reas

  • How can I connect my iPad Air to a cat5 ethernet.

    How can I connect my iPad Air to ethernet cat5.

  • Compaq mini 110 c bios LOST password

    I lost my password please help me my serial code is [Personal information] my product number is NZ759EA #ABH

  • Compaq Presario F572us upgraded to Windows 7 home premium 64-bit

    I just upgraded my F572us of HP Vista to Win 7 HP and want to update my memory of 2 GB.  What type of cards and how much GB?  In addition, Windows has done some major update, but how do I know if all drivers have been updated to include the BIOS?