BlackBerry card with custom menu

Hello

At my request, I can summon the BB card without problem, and pass the variable to my application so that it shows the exact location with more details and more.

Now, I want to add 'Get position here' on top of menu by default in course map BB, so when the user choose the selection, it will pass back the longitude and latitude of the center of the current screen of BB card back to my request.

How should I accomplish this? I know how to use MapField, but it doesn't have the leisure to research and other.

You must add an ApplicationMenuItem to the Maps app.

See the following article:

http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800703/How_To _...

Tags: BlackBerry Developers

Similar Questions

  • How to add a custom menu in the menu system, as the list of Blackberry contacts

    I would like to add a custom menu tinto menu system, such as the list of Blackberry contacts, when users enter in contact list and select the custom menu, it will open my client and send a few s parametertin my application as the contact name, telephone number, please tell me how and what version of the OS can do this.

    It's still not clear to me what you want to achieve.

    You can use http://www.blackberry.com/developers/docs/6.0.0api/net/rim/blackberry/api/menuitem/ApplicationMenuIt... to add a menu item to some system applications, for example the address book. you get a context object, in a BlackberryContact, you can process or use the address book.

    Your second post seems to allude to http://www.blackberry.com/developers/docs/6.0.0api/net/rim/blackberry/api/messagelist/ApplicationInd... , it is used to place small flags with or without the number, such as that used for unread e-mail messages.

  • BlackBerry Smartphones WITH the STORM's MAJOR PROBLEM! -Custom ringtones are NOT vibrate or go silent

    According to the Guide to storm: "you can receive different notifications for incoming messages and calls from specific contacts or groups of contacts. Call and message notifications for your contacts are received even if you switch your sound profile silent or vibrate only. »

    In other words, if you are in a meeting and on vibrate or silent mode, the phone will ring always if a call is received by a contact with a custom ring tone.  It is a defect and design MAJOR, in my view, totally unacceptable.  On all other BBs, vibrate and silent mode apply to all calls/messages - even those with custom ringtones.  Why is different from the storm.  He made the custom meaningless since once assigned ringtones, they can never extinguish. so for BB users who regularly attend meetings beware!  Assign a custom ring tone will be a career limiting move.

    As a loyal BB user for 5 years and more, I humbly ask RIM to fix this ASAP!

    I guess that when I changed it to the volume of the active profile that it would float to the active profile, being far away when it is to vibrate or silent or normal.  That doesn't seem to be the case.  It would be more logical than sense, though.

    However, I made a temporary fix.  I created a custom profile I call silent default.  I put the ringtone in this profile to:

    Ringtone: Ringer_ClassicPhone

    Volumeilent

    LED: Normal setting

    Vibration: on

    This causes the vibration when one of the call of people custom ringtone.

  • Custom menu item at the request of Message: two questions

    I try to add a custom menu to the Blackberry message request and get two questions:

    1. When you click the custom menu, the "Application.getApplication () .requestForeground (); method call does not call the main() method of my application "DemoMI".
    2. If I changed the method of

    Application.getApplication () .requestForeground)

    TO

    ApplicationManager.getApplicationManager () .runApplication (app); Where app is the "DemoMI" application descriptor

    Will be called the main() method. However, how can I make the subject of the Message around in the method "run" for the application "com.demo.DemoApp"?  I tried to use a static variable 'mi ContactsDemoMenuItem', but I've always had "null" value when the "main()" is called.

    My environment:

    • JDE: 4.2.0
    • Feature: Pearl 8100 with OS 4.2.0
    import net.rim.device.api.system.*;
    import net.rim.device.api.ui.component.Dialog.*;
    import net.rim.blackberry.api.menuitem.*;
    import net.rim.blackberry.api.pdap.*;
    import javax.microedition.pim.*;
    import net.rim.blackberry.api.mail.Message;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.*;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.ui.container.*;
    
    public final class DemoMI extends Application
    {
        private static final String ARG_LAUNCH_CONTACT_DEMO = "1";
        private static  ContactsDemoMenuItem mi;
        public static void main(String[] args)
        {
            if(args == null || args.length == 0)
            {
                DemoMI app = new DemoMI();
                app.enterEventDispatcher();
            }else
            {
                String appToLaunch = args[0];
                if(ARG_LAUNCH_CONTACT_DEMO.equals(appToLaunch))
                {
                   new com.demo.DemoApp(mi.getMessage()).enterEventDispatcher();
                }
            }
        }
    
        DemoMI()
        {
            long locationToAddMenuItem = ApplicationMenuItemRepository.MENUITEM_EMAIL_VIEW ;
            ApplicationMenuItemRepository amir = ApplicationMenuItemRepository.getInstance();
            ApplicationDescriptor app = ApplicationDescriptor.currentApplicationDescriptor();
    
            app = new ApplicationDescriptor(app, new String[]{ARG_LAUNCH_CONTACT_DEMO});
            mi = new ContactsDemoMenuItem(app);
            amir.addMenuItem(locationToAddMenuItem, mi);
            System.exit(0);
        }
    
        private static class ContactsDemoMenuItem extends ApplicationMenuItem
        {
            ApplicationDescriptor app;
            Message msg;
            ContactsDemoMenuItem(ApplicationDescriptor app)
            {
                super(20);
                this.app = app;
            }
    
            public String toString()
            {
                return "My Menu Item";
            }
    
            public Message getMessage()
            {
                return msg;
            }      
    
            public Object run(Object context)
            {
                if ( context instanceof Message )
                {
                    msg = (Message)context;
                    try
                    {
    
                        Application.getApplication.requestForeground();
                        //ApplicationManager.getApplicationManager().runApplication(app);
                    }catch(Exception e)
                    {
                        e.printStackTrace();
                    }
    
                 } else
                 {
                    throw new IllegalStateException( "Context is null, expected a Contact instance");
                 }
                 return null;
            }
        }
    }
    

    What you see is the expected behavior.  The ApplicationMenuItem runs in a different process where your application was run.  You have two options.

    You can store the subject of the Message in the RuntimeStore when the ApplicationMenuItem is called.  Your application you are undertaking could then read the subject of the Message of the RuntimeStore.

    Or you can create an application based on the drawing below:

    How to allow - a listener in the background to detect and update a GUI application
    Article number: DB-00406

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800783/How_To _...

  • Cannot create the custom menu item

    I feel that I'm missing something simple here.  Use the examples in the documentation for the BB developer, I am unable to get a custom menu item is displayed on a BB application menu in a simulator.

    More precisely:

    I copied the code for ContactsDemo (on page 31 of the PDF Advanced Developer) subjects, and works very well in the Simulator.

    I then copied the code for DemoAppMenuItem (from page 86 of the same doc).  It seems to work very well - no errors, and it appears in the Downloads folder on the Simulator.  But no custom menu item appears on the simulator when I create a new Contact, and then return to view it.

    I have all three options checked in Workspace Blackberry > Blackberry JDE > Code signing.

    My environment is:

    Eclipse 3.4.2

    BlackBerry JDE plugin 1.0.0.67 Eclipse

    I tried it with two simulators 4.5 and 4.6.

    Any suggestions are greatly appreciated!

    Thanks for the references page - this is a great compilation of resources!

    I don't know why the sample code of the documentation of EDGE does not work, but I was able to get the custom display menu item using the code I found this message on the forum.

  • Problem blackBerry Smartphones with updates/app loader/SoS - Blackberry Curve 8900

    The symbol of SoS came today and I looked up what may be causing it.  Nothing appeared to be damaged if the only other option was my software was not up to date.  Well, I installed the software for the device from RIM under my service provider, but oddly, I had no prompts to choose the directory in which I tried to install the software.  After installation, the Application loader loaded, and I clicked on "Start" on "software update."  I got a prompt saying: "Please connect your device" with a menu of dropbox and any options that it contains.   Now, my blackberry works with this computer (Windows 7) because I can access photos/music/etc through the storage using the USB.  The USB is connected when I try to use the Application Loader.   So ontop of the fact that I can't use my phone until it is updated and cannot update the phone due to software bug, I also can't FIND the path to failure again access software!  Like I said earlier, there is no no. PROMPTED to wonder where I have to install the software.  I looked on several forums for the automatic and same path SEARCH keywords such as "Research in Motion", "Device Manager", "Application Loader" and even "Blackberry" and none of these files allegedly exist.  I can access ONLY the charger of application through uninstalling and reinstalling the software, because it runs automatically after installation.  I hope that the program from a site legitimate BlackBerry (https://www.blackberry.com/Downloads).

    I am very, very upset by this phone. OnTop of the many bugs I've known throughout its use, its sad that I HAVE as a customer to update my phone my phone just otherwise stop across the network to my ISP until I do it.

    If I do not get immediate help on these issues through independent e-mail, personally never buy a Blackberry again and to discourage anyone from aswell.

    Kind regards

    Chris

    Already done this as I have explained in the original post.  Even then, I clicked on your link and was sent to the same Web site that I had already spent too except the one you sent me was strictly for East Asian languages, which I'm not going to download.  I had already downloaded the international and selected English.  The path to this program does not update the phone matter.  I have yet to come across a program that doesn't work than strictly on your C drive only.  Despite this, I have enough space on my C drive for the file - but it does not yet exist nor do ALL files/folders in the directory that was supposed to be created.
    Oh well, thanks for your help.  I guess I'll have to deal directly with RIM and waste more time with this phone.  Bugs, gel, blockings, reception loss/bad PC/updates to update software that are up-to-date and for the worst of all - a phone that forces all the reception off the power when you need to update, what a very good product.
    PS. other then Google Maps, no addons were never / have been installed. Phone never fell on a hard surface, but has a box of rubber for this instance.  Phone has no damage water (indicated by white strips) and no interior/exterior changes have been or is still made.  Never left in a hot/cold climate for long periods of time either.  So there is really no excuse other then a bad product.
    Wish me luck when they tell me to call my service provider of reception because it will not be the fault of phones; or, I will say to call microsoft, because it will not either rims software.  This is the circle of bad technical support.
    Thanks again.

  • 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

  • A custom menu selection makes so that the VI cannot be saved

    When I try to save a VI with a custom menu DURATION I joints 2 errors, oneter the other. It's using Labview 2014. any help would be appreciated. Ther is obviously not all invalid characters in the name of the file that I use.

    Richard

    Can you please run a repair on your installation of LV 2014 installation?

    Norbert

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

  • BB10: How to create a custom Menu

    Hello world

    I need to create a custom menu for BB10. That's how I want (see the two screenshos):

    • It must be a bar at the top of the screen. Just like a BB10 'Title Bar', it should have a title. But he must also have two buttons: one on the left of the bar and the other on the right of the bar.
    • When you press the left button, a custom tab menu appears to the left of the screen. It also has a title and a menu with icons and images/background color list.

    I don't know if it's possible to do that yet, but I heard that you can do this by using "Custom Control"s. I tried with "Glass in", "Application Menu", "Menu", "Action Menu" and 'Title Bar' but I think that none of them responds to what I need.

    Any idea?

     

    Thank you very much.

    Hello!

    I think that this is possible, but requires coding.

    Create the menu in a container offscreen, layout of the container the DispositionAbsolue value (you can specify x & y) and drag the container into the visible area with animation.

    Create title bar as a container with two ImageButtons and a label. Slide the container to the right.

    Or even use one container for menu and title bar, just create half of the items off the screen.

    When the positioning of the controls, you can use the device resolution in order to avoid hard-coding the values:

    DisplayInfo display;
    int displayWidth = display.pixelSize().width();
    

    Animations are created by combining the ParallelAnimation, the SequentialAnimation and the different transitions.

  • Elements of custom Menu Application

    Hello

    From a configuration file, I'm giving the user the ability to add and remove Menu items which would appear on a native BlackBerry Application Java, for example calendar, Contacts etc. It's all the dory hunky, adding menu items to the repository and the native application, but without a reference to the original object (which I think is garbage collected and stored somewhere in the depths of the BB database), I can't remove the added custom Menu item previously. (tried static member variable, and overwrite the previous text to menu items, just appears as a value that is duplicated in the menu)

    I read forums and manuals and the API extensively, but I did not yet find a solution.

    I read people who come on this issue, if there is a plausible solution, could you give a shout!

    See you soon,.

    Nik.

    If you want to remove an ApplicationMenuItem, you must keep a reference to the real menu item that you have added and use this reference to remove.  I find the best place for this is RuntimeStore.

    BTW do not know if you do this available to old BlackBerry OS, but even if you do this, the removal does not work under OS 4.0, but the fact in the latest OS.  Sorry not tested prior to OS 4.0.

  • Tick of custom menu to show the end of the article

    I have a menu of custom content that is hidden until the user clicks to view the content (see image below)

    ScreenHunter_02 Feb. 23 13.56.gif

    Ticks I would show once a user has visited a section - good

    However, what I have neglected to consider was that the menu is hidden until the user clicks to show.  Once a user finishes a section of the tick is visible on the page like the image below.

    So my question is how to display the tick ONLY when the user clicks to see the menu and ONLY after they have completed the relevant section?

    Thank you all in advance

    JO

    ScreenHunter_04 Feb. 23 14.07.gif

    Normally what you do to create a variable that is used to verify if a process was complete. Maybe at the end of the slide where the action occurs, the triggers OnExit setting the variable. Then the action of the slide with the menu OnEnter checks if the variable and reveals the checkbox indicating completion.

    See you soon... Rick

  • Can I use an SD card with the new MacBook?

    Looking to buy a new MacBook. From what I can tell there is no SD card reader.  I don't see any accessory adapter for SD readers either.  Is it possible to use an SD card with the new MacBook?  Thank you!

    Only I can find is for iOS devices > > http://www.apple.com/shop/product/MJYT2AM/A/lightning-to-sd-card-camera-reader?f node = 91

    On the SDXC - Apple Support and SD card slot

    I hope someone will find an adapter for you.

  • Only the Inbox displayed, with no menu for other areas such as "sent".

    Only INBOX menu, displayed with no menu for SENT, DRAFTS etc. on the left flank and with the FILE EDIT etc missing high.

    Hope you can help.

    All the best,

    Stan

    Features universal key to display the hidden menus bars is alt or F10. After that the display of the menu bar select View-Toolbars and rekindle the missing toolbars.

    Then in the menu bar select View-presentation-folder pane to rekindle that.

  • How to fix an SD card with a (not mountable in file systems of error)

    How to fix an SD card with a (no file mountable systems error)?

    Use disk utility to reformat the SD card - all data will be entered (lost).

Maybe you are looking for

  • I lost my contact list.how do

    I need help for my return address/contacts

  • NB200 - starting problems

    Hello I have a NB200 and I currently have problems with getting the computer to boot to Windows 7. The problem seems to be that the laptop is not recognizing the hard drive every time, second, when it does I boot recovery which requires a restart and

  • How to disable since 1904 on a mac

    Hello! Does anyone know how to disable since 1904 on a macbook pro retina? Whenever I have copy / paste a Microsoft Excel date my mac adds four years and one day to him.

  • Protection against malware pop ups microsoft anit

    I have a new laptop with McAfee protection.  It's less than a month and the last days I get those pop ups.  Warn him me surf for more than five minutes at a time.  I don't need this protection.  How to make the pop ups stop? Help, please!

  • error COAA0402 Ox. What that means and what can do

    When I try to create a hot spare, the DVD player comes up with the error COAA0402 Ox. What that means and what can do