Press the BlackBerry menu call

Hello

I want to call the menu when the user click on the BlackBerry button (this button is enabled BlackBerry 8800, which shows the full menu). I am able to display the menu by using the wheel, but don't know how to substitute for BlackBerry button.

Thank you

yosoh.

OK, I solved the problem by using super (DEFAULT_MENU) in the constructor of my class that extends PopupScreen.

Tags: BlackBerry Developers

Similar Questions

  • How do to call the BlackBerry menu form share an Adobe Air application?

    Hello

    I'm looking for a tutorial or demo code that describes how to call the BlackBerry menu sharing an Adobe Air based application.

    I found a tutorial of waterfalls for it - there's one for Adobe Air too?
    - http://bbcascadescode.tumblr.com/post/38998702671/invoke-share-for-bb10

    This is a screenshot of the Action menu:

    Advice welcome!

    Here you go:

    package com.lib.playbook.invocation
    {
        import com.lib.playbook.controls.List;
        import com.lib.playbook.pages.TitlePage;
        import com.lib.playbook.renderers.IconListRenderer;
    
        import flash.events.Event;
        import flash.events.IEventDispatcher;
    
        import qnx.events.InvokeEvent;
        import qnx.events.InvokeQueryTargetEvent;
        import qnx.fuse.ui.core.Action;
        import qnx.fuse.ui.events.ActionEvent;
        import qnx.fuse.ui.events.ListEvent;
        import qnx.invoke.ActionQuery;
        import qnx.invoke.InvokeManager;
        import qnx.invoke.InvokeRequest;
        import qnx.invoke.InvokeTarget;
    
        public class InvokeSearchPage extends TitlePage
        {
            private var request : InvokeRequest = null;
            private var targets : List = new List();
    
            /////////////////////////////////////////////////////////////////////////////////////////
            public function InvokeSearchPage()
            {
                super();
                this.title = 'Search With';
                this.titlebar.dismissAction = new Action( 'Cancel', null, {id:'cancel'} );
                this.titlebar.addEventListener(ActionEvent.ACTION_SELECTED, ActionSelected );
    
                this.targets.cellRenderer = com.lib.playbook.renderers.IconListRenderer;
                this.targets.addEventListener(ListEvent.ITEM_CLICKED, TargetSelected );
                this.targets.rowHeight = 140;
                this.addChild( this.targets );
            }
    
            ///////////////////////////////////////////////////////////////////////////////////////////
            public function filter( request :InvokeRequest ) : void
            {
                this.targets.removeAll();
    
                this.request = request;
    
                //trace( 'filter ' + request.mimeType );
                InvokeManager.invokeManager.addEventListener( InvokeQueryTargetEvent.SUCCESS, TargetsFound );
                InvokeManager.invokeManager.queryInvokeTargets( request.mimeType, request.uri, request.action, request.targetOptions );
            }
    
            ///////////////////////////////////////////////////////////////////////////////////////////
            private function TargetsFound( event : InvokeQueryTargetEvent ) : void
            {
                InvokeManager.invokeManager.removeEventListener(InvokeQueryTargetEvent.SUCCESS, TargetsFound );
                //trace( 'TargetsFound' );
                var action : ActionQuery;
                var target : InvokeTarget;
                for each( action in event.actions )
                {
                    for each( target in action.targets )
                    {
                      this.targets.addItem( { data : target.target, label : target.label, icon : 'file://' + target.icon } );
                    }
                }
            }
    
            ////////////////////////////////////////////////////////////////////
            private function TargetSelected( event :Event ) : void
            {
                if( this.targets.selectedIndex >= 0 )
                {
                  this.request.target = this.targets.selection;
                  InvokeManager.invokeManager.invoke( this.request );
                }
            }
    
            ////////////////////////////////////////////////////////////////////
            private function ActionSelected( event :ActionEvent ) : void
            {
                switch( event.action.data.id )
                {
                    case 'cancel' : this.dispatchEvent( new Event( Event.CANCEL ) ); break;
                }
            }
    
            //////////////////////////////////////////////////////////////////////
            override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
            {
                super.updateDisplayList( unscaledWidth, unscaledHeight );
    
                this.targets.setPosition( 10, this.top + 10 );
                this.targets.setActualSize( unscaledWidth - 20, unscaledHeight - this.targets.y - 10 );
            }
        }
    }
    

    And the rendering engine:

    package com.lib.playbook.renderers
    {
    
        import qnx.fuse.ui.display.Image;
        import qnx.fuse.ui.listClasses.CellRenderer;
    
        public class IconListRenderer extends CellRenderer
        {
    
            private var icon    :Image = new Image();
    
            /////////////////////////////////////////////////////////////////////////
            public function IconListRenderer()
            {
                super();
            }
    
            ///////////////////////////////////////////////////////////////
            override protected function onAdded():void
            {
                super.onAdded();
                this.addChild( this.icon );
            }
    
            ///////////////////////////////////////////////////////////////
            override protected function onRemoved():void
            {
                super.onRemoved();
                this.removeChild( this.icon );
            }
    
            /////////////////////////////////////////////////////////////////////////////////////
            override protected function drawLabel(unscaledWidth:Number, unscaledHeight:Number):void
            {
                super.drawLabel( unscaledWidth, unscaledHeight );
    
                if( this.data )
                {
    
                    if( this.data.hasOwnProperty( 'icon' ) && this.data.icon != null )
                    {
                        this.icon.setImage( this.data.icon );
                        this.icon.setPosition( 10, 15 );//( unscaledHeight - this.icon.height ) / 2 );
                    }
                    else
                    {
                        this.icon.setImage( null );
                    }
    
                }
    
                this.label.x = 140;
                this.label.width = unscaledWidth - this.label.x - 20;
            }
        }
    }
    

    references com.lib.playbook our our inner classes, but you should get the approach to apply.

  • App not on the BlackBerry menu

    Hi guys!

    I tried to import my application under test for other brands in the BlackBerry JDE for the eclipse, but it does not appear on the menu of the phone after the installation.

    1. File / new / other / BlackBerry / BlackBerryProject > MyProyectName
    2. Copy the .java files and folders to the Interior/SRC project
    3. Right-click on the project name > refresh
    4. Project / properties > title, Version, vendor name & Description
    5. Project > BlackBerry active build Configuration
    6. BlackBerry > install Signature keys
    7. BlackBerry > request Signatures
    8. Then I download the .cod & .jad files on my Web site
    9. Open the .jad with browser of the phone and download

    I find the application installed in Menu / Options / Advanced Options / Applications, but no icon appears on the menu and I don't know how to operate it.

    Any ideas on how to work around this problem? Any comment is welcome...

    Kind regards

    J +.

    you did not extend application or uiaplication? you have a main method? (Check with the debugger) is it called?

    have you checked autorun and module system?

    Maybe you can find the differences between your two programs.

  • Press the locking Cup call

    I use iphone 6 - IOS 9.3.4. When I press the button to lock the call entering Cup instead just of inhibition vibration and ring tone. Is it possible to change this setting, the lock button?

    As you can see on this page, your iPhone works exactly as designed and published.

    Yes, by pressing the "Lock" button (also called sleep/wake) ends a call.

    http://help.Apple.com/iPhone/9/#/iph3c9951d7

  • The application menu, calling other applications

    Hello

    I'm with the following situation:

    I have an application that will call the other applications, but each time I have called another application and request a new connection, how do I use authentication even the first request and transmits to the other?

    Thank you

    Márcio Goncalez

    Mag.goncalez wrote:
    Hello

    I'm with the following situation:

    I have an application that will call the other applications, but each time I have called another application and request a new connection, how do I use authentication even the first request and transmits to the other?

    See + {: identifier of the thread = 515240} + for the basic technique and the present statutes Oracle Magazine for extended examples:

  • Create a custom authentication
  • Build a framework for Menu

    Note that the APEX has an integrated model of publication and subscription. You create a 'master' application publishable elements such as authentication schemes, LOVs and models. Theme templates are created, maintained and published by means of this application, and other applications of reference standard by subscription to the main application. Changes may be expelled from the main application to all subscribing applications.

    To avoid having to recreate the subscriptions when creating new applications you can have a startup application with all subscriptions set up, then copy this request as a base line when you want to create a new.

    Note that the model of publication-and-subscribe-you only works in a single workspace.

    Unfortunately, the documentation is not exactly complete on this function...

    -----

    This is a frequently asked question and there are a number of previous discussions on it. Please visit our forum carefully for previous coverage of a topic before posting a new question. Most of the questions that newcomers have been asked (and answered) many times before.

  • Turn off the blackBerry Smartphones wireless synchronization of AddressBook

    Hello

    Using Desktop Manager to sync. Sort address book wireless synchronization has been enabled. I want to turn it off again. It's supposed to be in the help, but all he tells me is that I can it turn on or off. Any suggestions would be helpful.

    LewisCC

    Access your address book, press the Blackberry menu button and select Options.

    Select your address book that you no longer want to synchronize wireless and turn off wireless sync.

  • keyCharUnhandled & BlackBerry menu button

    Hello

    I am trying to replace the function Keypad.ESCAPE default, and I use the following code:

    protected boolean keyCharUnhandled(char c, int status, int time) {
        switch (c) {
        case Keypad.KEY_ESCAPE:
            System.out.println("Escape button pressed");
                    // do something here, and then exit.      System.exit(0);
            return true;
        default:
            return false;
        }
    }
    

    This method is in a class that extends MainSreen. I had to overide keyCharUnhandled because there is an entry in the main field, and if I replace keyChar in the class, then the keyChar on the editfield will not be called (or at least that's what I thought this happened)

    The problem is, when I use this approach (overloaded keyCharUnhandled), it seems that it cannot detect the BlackBerry menu button. How can I fix it?

    You can substitute keychar safely if you call super instead of return false

  • BlackBerry Smartphones New on the forum and the Blackberry

    Had a few questions. I searched your forums for 2 days and please bear with me as I knew not how to answer a text on my blackberry, when I got it LOL

    1. If we can watch tv on our blackberry series? (I love the biggest loser and here in Georgia they show basketball instead)

    2 live radio it works?

    3. How can I disable a missed call messages?

    4. How can I change my front screen icons?

    Im sure I will have more and thank YOU

    Michelle

    Hey goddess72, welcome to the forums!

    Here's an attempt at some answers for you:

    1. do not know... I have not really tried to watch TV on my phone.  I hope someone else can answer that for you.

    2 live radio... What you mean?  Are you referring to a specific application?  I know that there is a program called Slacker Radio which is available in the United States who are supposed to be great (as I am across the border to the North, I don't get to use it ).

    3. press the green phone button.  Upward at the top, click the call button (the one in the middle), press the BB menu button, scroll down to Options, and then under call to the log, select None.  You will always get messages that you have missed a call (as with other phones), but you will not get a message you record Messages more.

    4. to change your icon screen before (homescreen) order, select the icon you want to move up, press the BB Menu, select move, then just place it where you want and click on the screen, or press Menu of BB to confirm the move.

    I hope that helps answer some of your questions!  Do not hesitate to let us know if you have any other questions!

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

  • The blackBerry Smartphones Web site error

    A site that I used to be able to now gives me the following error...

    An error has occurred!

    Sorry, this section is not available for users wireless right now.

     

    So, just curious as to why.

    Thank you.

    Try to clear the cache first (in the browser itself > press the Blackberry, aka the Menu button > select Options > Cache operations > clear all here and BACKSPACE.) When his memory of cleaning done, Soft Reset your Blackberry (traction 30 seconds with Blackberry battery on) and then test after its finished reboot.

  • How to set the background color for the Webworks Menu?

    Hi all

    I have developed a web application that uses the emulator to ripple and Blackberry Webworks SDK 2.3.1.5.In I added the Menu items on the Blackberry Menu button... It works well... It contains the background color by default for Menu (Black)... Here, I want to change the background color of the Menu... Please help me to change the background color... Thank you very much..

    With respect,

    Marimuthu_P

    I don't think that this is possible.  The WebWorks API allows you to add menu items to your application does not provide the ability to change the background color by default of the menu.

    This API is actually an extension of Java built into the SDK WebWorks.  The source code because it's open source, available here: https://github.com/blackberry/WebWorks/tree/master/api/menu/src/main/java/blackberry/ui/menu

    It is based on the Java class "MenuItem", which as you can see it does not provide methods or properties to set the color:

    http://www.BlackBerry.com/developers/docs/7.1.0api/NET/rim/device/API/UI/MenuItem.html

  • Application Navigation - best way to implement right top of the page "Menu".

    Hello

    I am building a Blackberry application that has the following requirements. I need to create a 'menu' button at the top right of my screen that when clicked opens a list of items which, once clicked would open a screen). When the 'menu' button is clicked again buttons list disappears. A bit like the Blackberry menu but launched by a button attached to the top right of the screen. King of hard to describe, so please let me know if you want more details.

    I was reviewing what components are available and trying to figure out the best approach. I am using a button field list style (http://docs.blackberry.com/ja-jp/developers/deliverables/29251/Creating_a_list_style_button_field_16...).

    Any suggestions on a better way to approach it?

    Thanks in advance!

    Welcome!

    You basically need a button, ListStyleButton is fine, then you need a small screen to display, which will be a PopupScreen.  Get this working, then we can talk about positioning of the PopupScreen.

    The ListStyleButton seems to be an OS 7.0 field, but you will find something very similar here:

    http://supportforums.BlackBerry.com/T5/Java-development/implement-advanced-buttons-fields-and-manage...

    that you use in older levels.

  • Add the item to the Options menu?

    I tried and tried to look for it, but how do I add a menu in the menu optinos.

    I am not to speak about the application menu options but actually add my options on the blackberry menu options

    Home > Options

    I've seen it done with a few programs, I'm not sure how to do it.

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

    -What are you looking for?

  • Management of libraries of button does not appear under the Tools Menu

    The documentation available on SQL Developer Concepts and the use of the States that there is an item on the Tools menu, called "Manage libraries" in order to manage the connections databases Non-Oracle. I don't have such an item in the Tools menu.

    I'm under Oracle Sql Developer 4.0.1.14. I even tried to install an older version, and it doesn't have this option or the other.

    Any help is greatly appreciated.

    I checked my installation of JDeveloper, and this menu option is there. It is used to manage the Java libraries in general and has nothing to do with JDBC.   SQL Developer documentation is wrong.

    I already pointed you to the Preferences section to manage third party JDBC libraries and the Division helps. If you don't want that follow, then you are on your own.

    Note that DB2 / iSeries is not a third party database supported in SQL Developer.

  • Noob question: call the new Menu screen

    Hello.

    I have two screens. The first is called myScreen and is defined in a class file called plotter.java. It works very well. It has a menu that also works.

    What I want to do is to launch a new screen called windshield which is defined in windscreen.java. I tried to do it with the following menu item code, but it does not compile because it does not recognize the windScreen() method:

    private MenuItem menuWind = new MenuItem("Set Wind", 1, 1)
    {
        public void run(){
            pushScreen(windScreen());
        }
    };
    

    What I am doing wrong?

    P.S. My apologies for the basicness of this issue, you can tell I'm new to the Java/BlackBerry development.

    Try this,

    Windshield wn = new windScreen();

    UiApplication () .getUiApplication () .pushscreen (wn);

    This will help u.

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

    Kudo press to say thank you to the developer.
    Also, press accept it as a button when you got the Solution.

Maybe you are looking for