Element of custom Menu App phone while runnig appeal

Hello

I have to add a custom menu to the PhoneApplikation when a call is runing. If I add a MenuItem to the MENUITEM_PHONE, it is visible only until the call is started. During the call, I can't see the following entries.

Help

------------

Hold

Add Participant

Transfer

Enhance the Audio call

Mute

Notes

-------------

New call

Call voicemail

I inserted my MenuItem using the MENUITEM_SYSTEM successfully, but then she is visible everywhere. I only want to show during an existing call.

How can I add a Menu item here?

Thx for your help.

He works in the way you suggested. Inside of my PhoneListener to the event callConnected I add menuitem and where call disconnected I have delete. If the element ist only visiable during the call.

Thanks for this great hind.

Tags: BlackBerry Developers

Similar Questions

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

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

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

  • Phone while using it is in mode lost

    Hello

    If somebody stoles my phone while it is offline (as in airplane mode) and I active lost mode, this person will be able to use Apple pay?

    I mean that the phone will not know that lost mode has been activated because it is offline.

    Hello

    Find my iPhone is trying to suspend any credit card or debit that you have in the portfolio to pay Apple, even if your iPhone is in offline mode.

    More information:

    iCloud: use lost Mode

  • Page Forward and Reverse buttons do not work and are "grayed out" after upgrading to, as it is the elements of main Menu like file-Edit-view etc...

    After the upgrade to Firefox 3.6.12 features appear to be intact. Then, after a few days he lost the ability "page forward" or "back" and are "grayed out". In addition, the elements of main menu like File, Edit, View, history, Favorites, tools, and assistance are also grayed out and non-functional.

    In addition, the "search engine" does not search, search the Web should be made since then in the URL window instead, for some reason any crazy. If the URL window is empty when I enter a search in the search window, the following text appears in the URL window, "bookmarks and search history", which makes no sense.

    In the past, I've noticed similar complaints in this Forum, but I have not seen any resolution posted these questions. Is there a solution?

    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»

    If this new profile works then you can transfer files from the old profile to the new profile (be careful not to copy corrupted files)

    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • 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

  • my internet radio stops every 10 to 15 minutes and I have to update it again and again. The same thing with my action also voip internet phone while iam using it

    my internet radio stops every 10 to 15 minutes and I have to update it again and again. The same thing with my action also voip internet phone while iam using it

    Hello
     
    (1) what version of Windows are you using?
    (2) remember to make changes to the computer before the question?
    (3) what browser do you use for Internet Radio?
    (4) what do you exactly mean by the loss of the webradio?
    (5) on which site you want to play the radio?
    (6) using WIndows Media Player to listen to Radio Online?
     
    See also a few following articles dealing on VoIP.
    Troubleshooting VoIP
    How IP phones connect to the network
     
    Get back to us with more information on the issue so that we can better help you to provide the resolution.
  • 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.

  • How to get currently displayed a phone app phone number?

    City previous forums:

    nkarasev

    Messages: 93
    Join date: Apr, 2007

    How to get currently displayed a phone app phone number?
    Posted the: July 31, 2008 12:06 AM
     
    If there is a way to get the phone number of the user currently entered the dial phone app BEFORE?

    I know I can get the phone number of the phone call from the newspapers.

    Thank you
    Nikolai

    You can add an ApplicationMenuItem to the phone application which can happen in its run method.  Please note that there is a problem in the 4.3.0 release where this does not (null is passed instead).

    The problem of null is passed by an ApplicationMenuItem in the phone app is solved in BlackBerry handheld software version 4.5.0.  This issue was present in version 4.3.0.

    You see this in newer versions?

  • I want to install a program, but when I run the setup I have this error displays "an error (-5006: 0x8000ffff) occurred while runnig the Setup program."

    original title: Setup error.

    I want to install a program, but when I run the setup I have this error displays "an error (-5006: 0x8000ffff) occurred while runnig the Setup program."

    Please make sure you have finished any previous Setup and closed other applications. If the error persists, please contact your dealer.

    I solve the problem... All the error is the file. I don't know but he corrupted and I deleted it.

    I have download it again and the problem was solved. Thanks to you all.
  • 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.

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

  • I have seen the user that one of my menu apps start how do I see on the other?

    I installed Microsoft office on my pc but I got 2 users. I have seen the user that one of my menu apps start how do I see on the other?

    Former title: need help please

    Soumya, salvation

    Thanks for posting the query on Microsoft Community.

    If I understand correctly, you want to access the applications in the two accounts on your system.

    When you say "I could see menu start of the user as a single of my apps", are you talking about office applications or other applications?

    For the office, if you are installing Office into the administrator account, it will be copied to all user accounts on its own.

    For other applications, you can consult the links below and check if it helps.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows8_1-security/sharing-apps-on-the-same-Windows-81-computer/11102ceb-4C99-4BB1-81fb-6c9e91b4066d

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-windows_store/can-different-local-users-on-a-Windows-8-PC-share/a3d40be6-3504-4e61-8b13-d8f8e5c7bc3b

    I hope this helps to solve the issue. If the problem persists, get back to us. We will be happy to help you.

Maybe you are looking for

  • Re: Satellite P300-17R - no boot after BIOS screen

    Help!My laptop no longer starts. Ive tried to access bios and reset the default settings and reboot, but it does not work (after running bios I get a black screen and no visible action on the hard drive) the day before, I had stop the laptop the righ

  • Mixed signals graphic memory leak

    We have an application where the data is received over TCP, deserialized and fed in a graph of mixed signals (8 analog, 2 digital buses of 4 bits each) periodically (approximately every 500mSec). Analog and digital data are combined in a cluster and

  • Is it possible to cancel a quick format?

    Is it possible to cancel a quick format? We made a backup of files that I need my hard drive. If it can be undone? Help, please!

  • help function on dv6 envy

    I have a dv6 nine envy.  How can I activate 'help '.  I was expecting f2 would be open help.  I only opens the brightness of the screen.  Where is the help on this pc?  How can I open it? Thank you.

  • How to get rid of the message of Windows Mail wishing to compact the message store.

    Original title: messsage compact store How can I get rid of the box that appears whenever I go out from windows mail wishing to compact the message store?