How to use the context menu of the 10 Blackberry in my app using Air

Hey please help me

How do I use the native bb 10 context menu, I got contextmenuevent class to access the events, but I don't know how to add the context menu as long press on any image.

Is there a documentation or extract is available?

There are several threads on this and can be found from the search field. Here is the one who can answer your question:

http://supportforums.BlackBerry.com/T5/Adobe-AIR-development/BB10-adding-context-menu-to-list/TD-p/1...

Tags: BlackBerry Developers

Similar Questions

  • How is Samsung TV, possible to permanently hide the message that explains how to use Air play via Apple TV?

    How is Samsung TV, possible to permanently hide the message that explains how to use Air play via Apple TV?

    Apple Tv has the conference room mode turned on causing the message to appear.  Turn it off:

    On restrictions of airtime and the mode of the conference room on your Apple TV - Apple Support

  • How to set a context menu to datagrid?

    I have a datagrid that I want to use a contextmenu to remove items. I know how to add a context menu for the datagrid control, but this adds to the whole grid, including the header and the empy list box. I really want the menu to appear when you right-click an item in the list. Could someone please show me an example of how to do this?

    Here's what I did-

    1 assign the context Menu and methods required for the DataGrid itself as follows: -.

    private var deleteRowContextMenuItem:ContextMenuItem;
    private var lastRollOverIndex:int;
    
    private function dataGrid_createContextMenuItems():void{
         //DataGrid menu
         var dataGridContextMenu:ContextMenu = new ContextMenu();
         dataGridContextMenu.hideBuiltInItems();
    
         //Delete Row menu item
         deleteRowContextMenuItem = new ContextMenuItem("Delete Selected Row",false,false);
         deleteRowContextMenuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,deleteSelectedRow,false,0,true);
         dataGridContextMenu.customItems.push(deleteRowContextMenuItem);
    
         dataGridContextMenu.addEventListener(ContextMenuEvent.MENU_SELECT,dataGridContextMenu_menuSelect,false,0,true);
         dataGrid.contextMenu = dataGridContextMenu;
    
    }
    
    private function dataGridContextMenu_menuSelect(event:ContextMenuEvent):void{
         //Set the selected row and enable its deletion when using right-click
         dataGrid.selectedIndex = lastRollOverIndex;
         deleteRowContextMenuItem.enabled = true;
    }
    
    private function deleteSelectedRow(event:ContextMenuEvent):void{
         if(dataGrid.selectedIndex>-1){
         Alert.show("Delete selected row ("+dataGrid.selectedItem.name+")?",
         "Verification (cannot undo this operation)", Alert.YES|Alert.NO, null, actuallyDeleteSelectedRow);
         }
    }
    
    private function actuallyDeleteSelectedRow(event:CloseEvent):void{
         if(event.detail == Alert.YES){
         //// (Code for deleting the selected row from the DataGrid dataProvider) ////
              dataGrid.selectedIndex = -1;
              deleteRowContextMenuItem.enabled = false;
         }
    }
    

    2. have the following event on the DataGrid definition - (mx) listener

    itemRollOver="{lastRollOverIndex = event.rowIndex}"
    

    It's about everything!

    (In any case, this is the solution I did for that matter...)

  • How to add custom context menu menu items?

    How to add custom context menu menu items?

    through c++ sdk

    Hi Philippe,.

    to display a context menu you just replace the path of the menu. For example if you have a menu ' hand: & Layout: MyMenu "you can add it to the context menu"RtMouseLayout:MyMenu"in your MenuDef resource in the file en with the ActionID of your ActionComponent.

    Markus

  • How to get the device model, for example app works on PlayBoook or BlackBerry 10?

    How to get the device model, for example app works on PlayBoook or BlackBerry 10?

    You can use this class: http://goo.gl/GtMLP for information on devices

    something like this:

    String myDeviceModel = android.os.Build.MODEL;
    String myDeviceBrand = android.os.Build.BRAND;
    String myDeviceDevice = android.os.Build.DEVICE;
    
  • How to create a context menu on a tree.

    Hello guys.

    Could someone explain to me how can I do to create a context menu on a tree?

    My version of the APEX is 5.0.

    Thanks in advance.

    Edson

    Hi Edson,

    The API for the tree widget and widget menu are undocumented and unsupported at this time.

    Information on the use of the widget menu to display a context menu on interactive reports may be useful for you:

    APEX 5.0 custom Menus | HardLikeSoftware

    The tree widget has an option of contextMenu that integrates with the menu widget.

    Kind regards

    -John

  • I can not sincronize my Blackberry Desktop Manager with Windows Live. I get the message "unknown error reported" How turn off the connected BlackBerry smartphone advanced power management features

    I'm on resolution 5, I used four different resolutions and none of them work, and I do not understand how to apply the meanless 5. Resolution 5

    Turn off the connected BlackBerry smartphone advanced power management features. For more information about how to disable the USB selective suspend feature in Windows, visitMicrosoft Help and Support site and search for "disable usb selective suspend."

    See if http://support.microsoft.com/kb/902274 help
    --
    ..
    --
    "andresgn" wrote in message news: 9754 c 356-97ed-4b9f-8dc5-c3318a6dc60b...
    > I'm on resolution 5, I used four different and no resolutions are
    > work them, and I do not understand how to apply the meanless 5.
    > Resolution 5
    > Turn off the connected BlackBerry advanced power management features
    > smartphone. For more information about how to disable the selective USB
    > suspend functionality in Windows, see the Microsoft Help and Support site
    > and look for "disable usb selective suspend."
    >
     
     
  • How to get the default BlackBerry smartphone email address?

    Hi all

    How can I get the BlackBerry default email address?

    Thank you

    Sumit

    Thanks Pierre.

    Here's the post that says abt the same question.

    http://supportforums.BlackBerry.com/T5/Java-development/how-to-retrive-the-configured-mail-ID-into-m...

  • How to use AIR SDK with Flash Builder 4.6 3.8?

    Until now I was using AIR SDK 3.6 with Flash Builder 4.6 on mac OS X, with a known method of new sdk "rsyncing" and patch the xml-s config files, but now, I downloaded the new version of 3.8 SDK Beta, because I tried to update, and this method fails. For a new project, Flex Mobile, I get the compilation error "could not resolve < s:TabbedViewNavigatorApplication > to a component implementation, problem Flex"...

    I see on the AIR SDK download page http://labs.Adobe.com/downloads/air.html there are two versions of the SDK, one is the compiler 2.0 level one is for users of Flex... What should I download and update with Flash Builder 4.6?

    This new SDK can be used even on FB 4.6? or is supported only for FB 4.7?

    Thank you.

    You can use http://labsdownload.adobe.com/pub/labs/flashruntimes/air/air3-8_sdk_sa_mac.tbz2 with the FB 4.6. Here are the steps to overlay the sdk

    1 exit Flash Builder.

    2. (optional) save for the Flex SDK kit by copying the directory.

    In Flash Builder, for example, to copy the directory to:

    • Mac OS: / Applications/Adobe Flash Builder 4.7/sdks/4.6.0

    3. download the AIR SDK file appropriate for your operating system for example http://labsdownload.adobe.com/pub/labs/flashruntimes/air/air3-8_sdk_sa_mac.tbz2, unzip it and save it on your MAC OS X.

    4. in the Terminal, run the following command

    Ditto sudo/path/air3-8_sdk_sa_mac Applications/Adobe\ Flash\ Builder\ 4.6/sdks/4.6.0

    5. (optional) to access the new AIR API 3.8, update your application descriptor file to the namespace 3.8.

    ' To update the namespace, change the xmlns attribute in the application descriptor to: http://ns.adobe.com/air/application/3.8 ">

    6. (optional) to ensure that the version of the SWF file output SWF 21 targets, pass a the additional compiler argument:-swf-version = 21.

    Hope this will help.

    Kind regards

    Hichem

  • How to change the tag add value in app.config using c#

    Hi all

    Please help me to change the value of a value by using c# code.

    I tried to google.

    App.config code:

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

    <>

    XML version = "1.0" encoding = "utf-8"? >

    Configuration >

    appSettings >

    Add key = "Lastmodifiedtimeforfile" value = "16/05/12 13:57:12" / > "

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

    c# code

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

    System.Configuration.

    Configuration config = ConfigurationManager.OpenExeConfiguration (ConfigurationUserLevel.None);

    config. [AppSettings.Settings

    "Lastmodifiedtimeforfile"]. Value = "16/05/12 16:15:42;

    config. Save)

    ConfigurationSaveMode.Modified); ConfigurationManager.RefreshSection ("appSettings");

    But when I pass my code and the execute method, I do not see the change of all configuration files (App.config,. exe.config, or. vshost.exe.config).

    Even I tried the following code:

    XmlDocument xmlDoc = new XmlDocument();

    xmlDoc.Load (AppDomain.CurrentDomain.SetupInformation.ConfigurationFile);

    foreach (XmlElement element xmlDoc.DocumentElement)
    {
    If (element. Name.Equals ("appSettings"))
    {
    foreach (XmlNode node in the element. ChildNodes)
    {
    If (node. Attributes [0]. Value.Equals ("Lastmodifiedtimeforfile"))
    {
    node. Attributes [1]. Value = DateTime.Now.ToString;
    }}}}

    xmlDoc.Save (AppDomain.CurrentDomain.SetupInformation.ConfigurationFile);

    But it does not work. Please help me its urgent.

    Kind regards

    Selva.C

    Hi Selva,

    Thanks for posting your question in the Microsoft answers Forum.  I would suggest to repost your question in our MSDN forums:

    http://social.msdn.Microsoft.com/forums/en-us/categories

  • How to access the information in my iCloud app?

    How can I open my iCloud account? Please tell me step by step.

    If you have an Apple ID, you can use any browser of the computer and log on to https://www.icloud.com

    You can immediately or respond to you with more details on what you want to do and this device or devices that you want to do.

  • How to launch the ms office software downloaded in mac air

    Hello

    I am unable to launch / open MS office or MS word in mackbook air.

    I downloaded the software "excel" and "ms word" iTunes. After little hassle found in itunes under Myapps, but when I click on the file/app, nothing happens. Same thing for ms word.

    pls help... am new to mac. Using of "numbers a pain because cannot find the base like %, the option keys to follow the same format above cell or ctrl D etc aren't there."

    'Pages' has the ability to save in ms-word format, so download/sending files is always easy but could not find a similar option in 'Numbers' however.

    Pls help how do I launch or open excel. I tried to open the excel attachment, hoping that I will get an option to open in excel, but alas.

    concerning

    Mac shortuts ARE the same, BUT use the command instead of control. You downloaded the iOS instead of the mac app application.

  • How to hide the metadata in Lightroom Mobile app

    I'm looking on my images on my iPad a day and when all the thumbnails image fill the screen, they all metadata on top of each thumbnail. I have no idea how I turned it work on. All I want to know is how can I turn it off.

    Thank you very much

    Houston

    IMG_0197.PNG

    Tap with two fingers. If you use two fingers to type the grid - whenever you type, it passes to the next metadata until you set it to none.

    I suggest that you return to the collections view, press Lr icon and tap reset overlays help. This will display reminders of the art for a period.

  • How to create a context menu

    I need to create a drop down of one of the items in the navigation bar. I assumed that by creating 'the child' pages in the plan view from a 'brother' would do it?

    Yes, you can design similar to the desktop version.

    Use any composition, and then menu Insertion in the container box, menu can be default or manual, you can insert any other widget such as the accordion to have a drop-down list in container flyout.

    A good example can be seen here:

    http://Muse.Adobe.com/exchange-library/menu-vertical-Accordion-widget-1

    Thank you

    Sanjit

  • How to choose the right version of publishing app when you choose to change the image of in InDesign?

    Hi all

    Normally when I want to edit a picture that is in a page layout in InDesign either, I press option-click on the image, or ctrl-click on the image and choose to edit using the CC of Photoshop, Illustrator CC or another app I need to use at any specific time. Well, I also have backups will only backup my entire system and so all my applications get saved as well.

    Well, what's happening now (for today) is that when I choose to edit the image, it is opening Photoshop (or Illustrator, etc) from my drive backup and not within the app on my main drive. So, even though I already have Photoshop open as I work in InDesign, when I try to edit an image it will open the copy of BACKUP of Photoshop AS well I tried to choose 'other' when ctrl-click on the image and choosing to Ed... but when I navigate to the here where Photoshop is on my main drive, I can't choose the main application because it appears to show the main application of Photoshop as a folder with the that there is content packaging.

    How the hell can I fix the path to the correct version of Photoshop, where I need to do the editing? I must now go to things a way hijacked by browsing up to where the image is in the finder (via ctrl-click on the link of the image in the LINKS Panel and choose "show in finder"), but it takes twice longer :((, it wouldn't be so bad if I didn't have as many images as I work with that I'm doing now.

    Any help or advice will be appreciated :))

    Thank you kindly,

    Christine

    Just guessing...

    The problem is if Photoshop CC on the primary drive is open? If this is not the case, consider set to open at the start of the computer. The current instance might prevail over those inactive.

    Usually, the installed in last instance of an application is the one linking operating systems (OS X & Windows) with a document file that calls for the application, for example, by double clicking in Finder/Explorer. It is common to see the new version called (say CC Photoshop rather than Photoshop CS 6) because the new version is usually the last installed. Because Adobe CS applications typically install new versions of common files, it is recommended to install releases in chronological order, if it is necessary to reinstall the applications when there are multiple instances on the same computer. For example, to install Photoshop CS4, and CS5 and CS6; If an earlier version is installed when a newer version is present, the previous common files can cause application problems. One consequence of this is normal, but sometimes annoying, behavior that at the launch of an application by throwing one of his files, the new version is open because this is the functioning of the operating system.

    In your case, it is possible that the operating system sees Photoshop of the backup drive installation the new installation and lance. Perhaps to save Photoshop CC makes this instance appear most recent for the operating system. Remember to leave Photoshop CC out of the backup operation. If it works well! If this isn't the case, you may try to start the computer from the backup disk, run Photoshop, then exit and restart the computer from the main drive. If this solves the problem, maybe try to start from the backup disk, then reinstall Photoshop top and then restarting the main player. If it works, it can "keep", or an operation like backup, could reduce to naught all your smart stuff.

    Maybe one of these strategies may be a permanent solution.

    HTH

    Kind regards

    Peter

    _______________________

    Peter gold

    Know-how ProServices

Maybe you are looking for

  • Two Apple watches an iPhone

    If I connect two watches from apple on an iPhone, given fitness will be synchronized? Apple Watch second, can be used by someone else?

  • Portege M300-101 - How to access the recovery partition?

    Hello I have a laptop Portege M300-101 model PPM30E-00G019SPI have problems and need to re install the original operating system.There is a 2.5 MB partition where the laptop recovery system. But I have no way to access it.In addition to the documenta

  • 2009 DLL problems

    I am trying to import a dll in 2009, I used tools, import, hsared library (.dll), then I do not get a choice on the next window "specify create or update mode" is selected. On the next window, I put the path to the dll and header. There are them an a

  • Deploy the OEM of XP to several PC image

    Hi people, I have a Dell PC with XP PRO OEM installed on it. I have another 9 PCs (same model), all of which have their own XP PRO OEM stickers on the side. It's ok for me to:The first PC from Dell using a freeware tool, imaging image to deploy the i

  • Windows Vista Blue Screen of Death - what is a virus or malware?

    My computer automatically restarts on its own. It gives me a message "Windows closed unexpectedly". When I try to look for a solution on the internet on the computer it redirects me to a link. Every solution I see there as a hardware problem, but the