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.

Tags: BlackBerry Developers

Similar Questions

  • 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

  • applicationContext remains "null" after using the custom url scheme to launch the app

    Hello

    I am currently working on a DPS application for a customer who wishes to use its own authentication system.

    The client system is implemented so that they send the valid token to a URI with a custom method.

    By setting the same pattern custom in my app DPS constructor, I can get the app from the login window.

    What is described in the library of DPS & Api store 2.32 documentation, I understand that

    " adobeDPS.configurationService.applicationContext must contain several variables associated to how the viewer was started or enabled:" ","this class represents the context under which the application is launched '


    However, in my application when I try to see what contains the applicationContext, the object is always 'null '. It doesn't matter if I started the application by clicking on its icon or if it was launched using the custom uri scheme.


    Is this a bug or am I missing something here? I really need this token.

    Hello

    After being stuck for a while trying to work with the url of my client for usage, I finally tested it with a modified version and have found the cause of the problem.

    Work of first information provided by a colleague who was apparently not detailed enough for the customer asked me to use a url of the form App. scheme://auth/#token=...

    It turns out that this kind of url can start or bring the app to the front, but applicationContext remains empty.

    My tests using a url in the same form as you suggested (eg. app. scheme://v1/slot/library) can trigger the app or transmit data.

    The documentation available in the SDK library & shop and article on how to use a custom template is very vague on what formats link actually works, and how we can vary with it.

    A breakdown of official links to pieces, that the parties do and what items can be modified (for example ' / appstate') within the API documentation would be a great help for developers, I think.

    Kind regards

    Lorin

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

  • Get a static noise when using the sound track

    I just Adobe Premiere Clip, thanks to Kevin, because he was talking on his vlog every day lol.

    I managed to make a little video, photos of stil, and I work very well, but when I announced a soundtrack, all I hear is static noise, seeing the video, in the first video, but when I save the video and read it, then it sounds very good.

    I use Adobe Premiere Clip version 1.1.2.1161 on Android version 6.0 on a Sony Experia E5

    I understand now.

    I will ask to confirm the media audio information.

    You can use the MediaInfo application which will help you to get all the information about this Audio clip. (https://mediaarea.net/en/MediaInfo/Download this application specifically runs on desktop computers)

    Also, let me know the source of this Audio file.

  • Not selectable DataGrid row when using the custom itemRenderer

    I placed created an itemRenderer customized for use in a DataGrid in Flex 3.2, however, when I click in the cell in the grid using this itemRenderer, the line is not selected. (the DataGrid.selectable property is set to true).  Abolition of the use of the converter back the expected features. Here is my renderer object, is there any reason why I should expect this behaviour?  I have other itemRenderers not causing this, but their anatomy is the same... nothing manifestly different about them.

    Thank you

    Muaddib

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:HBox ' http://www.Adobe.com/2006/MXML "
    Width = '100% '.
    horizontalAlign = "center" >
    < mx:Script >
    <! [CDATA]
    public private static var millisInSec:int = 1000;
    public private static var millisInMin:int = 60 * millisInSec;
    public private static var millisInHour:int = 60 * millisInMin;
    public private static var millisInDays:int = 24 * millisInHour;
    public private static var unknownMsg:String = "UNKNOWN";

    public var _data: Data;
    private var _valueUpdated:Boolean = false;

    private void getFriendlyFormat(millis:Number):String {}

    ...

    formattedString return;
    }

    override public function set data(value:Object):void {}
    if(null == value)
    return;

    var newData: Data = value in the form of data;
    If (newData! = _data) {}
    _data = newData;
    _valueUpdated = true;
    }
    }

    override protected function commitProperties (): void {}
    {if (_valueUpdated)}
    var finalDate:Date = new Date();
    Update 'timeLabel"according to on_data
    _valueUpdated = false;
    }
    }
    []] >
    < / mx:Script >
    < mx:Label id = "timeLabel" / >
    < / mx:HBox >

    If you are not ' going to call super.data = value, you should probably have a get

    According to the data

  • I get a paper jam when using the duplexer

    I'm on my 3rd oj6500a.  I had several problems.  The most recent is 2 sided.  I've been in touch with technology services and they replaced the whole printer again, except the duplexer. This is the same as that supplied with the original printer.  two-sided printing does not work and I suspect the duplexer that hangs on the back.  Can I check on before going again to technology services? I already logged 8 hours with them.  I am close to giving up n this model!

    I finally got the printer working.  The store that I bought the printer exchanged the bad Duplexer for a person on a new printer.  Guess what, it worked.  Technical service, after their diagnosis, sent me a reconditioned printer that was supposed to solve the problem.  I kept telling them it was the duplex unit.  I'll send the printer reconditioned to them.  I had a discussion with one of the supervisors tech today and was sorry that I had so much trouble and that he agrees with me on the back of the printer.  Now that it works, I like it.  It's so much better than what I had before.  I just hope that it continues.

  • Do not get information on costs when using / * + RULE * / in Toad 9.5

    Hello

    All while optimizing a query when using / * + RULE * / in the query I get no info for the cost and cardinality.
    Can you tell me is the / * + RULE * / obsolete in oracle or what can be the reason.


    Help me..

    Thanks in advance.

    948707 wrote:
    Hello

    All while optimizing a query when using / * + RULE * / in the query I get no info for the cost and cardinality.
    Can you tell me is the / * + RULE * / obsolete in oracle or what can be the reason.

    Why do you use this suspicion?

    In addition to the fact that the basic optimization rule is obsolete, the optimizer can either make rule base optimization or cost optimization. Why wait get based cost information when using the basic optimization rule?

    Do not use these tips. Optimisation cost function is far superior to the basic rule.

  • Actions - using the file menu command

    I use Photoshop CS5 in Windows 7

    I create an action that resize a scanned image and sets the mode, then I insert a command to save

    When I run the action, I get the window SAVE but the file type is set to PSD

    If I execute the action and just do orders manually, the file type appears as TIFF, which is what I want.

    Question: Why is he coming PSD and is it possible to make it default to what I want?

    Thanks - Mark

    Instead of using the Insert menu item to save in tif, save a step

    in the action to save a file as a tif file. That way if you want to save it dialog box

    It seems failing in tif. Make sure that the enable dialog box if

    you want to save it as dialog appears.

    more info on measures:

    http://help.Adobe.com/en_US/Photoshop/CS/using/WSfd1234e1c4b69f30ea53e41001031ab64-7452a.h tml

    MTSTUNER

    Post edited by: MTSTUNER

  • How can I clear the browser history when you use the custom settings for history?

    When my history option is set to "Use the custom settings for history", the options page has no link to "clear recent history". There was formerly a menu option, but that seems to be gone now with Firefox 29. Is my only option to access the dialog box, clear the history all to change the historical option to history to remember and then change it back? Is there another way to access the option erase history all?

    I think you can get the menu bar by pressing the ALT key. If you want to return permanently, click View > toolbars and check menu bar.

  • When I try to sign on to camfrog I get a message: "you are using the version of Camfrog is obsolete and is no longer supported."

    Original title: help for Camfrog

    When I try to sign on to camfrog I get a message: "you are using the version of Camfrog is obsolete and is no longer supported." Download the latest version of http://download.camfrog.com'-I tried to download but it doesn't work. " 2 questions: do I have to remove the camfrog version I first, and what version download because it says no and 2nd question is that I have camfrog pro - how can I get camfrog pro to get on the new version, because I've already paid for this? Thank you

    Hello

    These are not the questions we can answer?

    You will need to contact the developer of this program.

    Camfrog - Help:
    http://www.Camfrog.com/help.phtml

    Camfrog - Forum:
    http://www.Camfrog.com/forum.phtml

    Concerning

  • Firefox guard handed himself to "never remember history" even if I say "use the custom settings for history".

    Firefox seemed to work fine until yesterday. When I used Firefox yesterday, my home page was changed to Firefox start page and did not open my tabs from the day before. I went to settings and changed the homepage back to google.com and told to "use the custom settings for history". I closed Firefox and opened it again and my homepage was google.com, as I put it, but it was back to "never remember history". I tried several times, yesterday and today, but Firefox keeps affecting himself never "remember history".

    Choose the 'use the settings customized for history' parameter is not make changes to the parameters of the history and cookies.

    Firefox displays the "use the custom settings for history" as an indication that at least one story and cookie settings is not the default to make you aware that the changes have been made.

    If all the history settings are default, custom settings are hidden and see you "conservation rules: (never) don't forget history."

    Don't remember history"means that private browsing is active and"Always use private browsing mode"Gets a check mark.

  • my privacy setting is stuck on do not forget history, won't stay on using the custom settings for history, after I've selected and click ok

    When I go to tools, Options, privacy and "Use the custom settings for history" of the value and then click on OK it won't save. It remains on "Remember history", even if she never will save "remember history" as I tested it. It seems if be produced after these recent last Firefox update. Anyone know why I can not choose "Use the custom settings for history", as is the parameter I want to use?

    Why aren't satisfied with the history settings by default that you currently have?

    Any changes (for example, to disable the cookies third party or form not given memory or keep cookies until you close Firefox and make an exception for the cookies you want to keep) that you will cause "use... custom parameters. "to be selected if you really want to see.

  • I6 fire babysit device when using the internet? any solution?

    I6 fire babysit device when using the internet? any solution?

    Let's define "overheating". If the temperature of the phone reached a dangerous level the phone turns off it to cool down. This phenomenon occur? If this is not the case it is not overheated.

    What is your cell signal? If the signal is low, the phone must increase its power to maintain a connection. This may require as much as 10 times the energy as a strong signal, and the phone gets hot under these conditions. If will also drain the battery very quickly.

  • Single line vertical when using the ADF to Scan or copy on HP Officejet Pro 8600

    Printer HP Officejet Pro 8600 Premium (CN577A)

    OS: MS 7 64-bit

    When you use the ADF for my printer HP CN577A Officejet Pro 8600 Premium, I get a single vertical line on the document which is produced. This occurs when copying or scanning, both black and white and in color. If I scan or copy using the glass, I do not get the vertical line.

    I already tried troubleshooting.  I unplugged the printer, left without electricity for several minutes; that didn't fix the problem.  Then, I cleaned the rollers and glass; I always get the vertical line, but only when using the ADF.

    My firmware version is up to date (CLP1CN1150CR).

    What should I check next?

    The only difference between the ADF and scanning flat, from a point of view of the scanner is there on the glass, it happens.  I suggest you get a bright flashlight and examine the corresponsing area hence is the line, it's almost certainly a spot on the strip of thin glass which is being just in the right place.

    I've seen some people suggest that put a flashlight almost parallel to the Strip, it shines from the bottom can highlight the area problem.

Maybe you are looking for

  • I show two updates of security with a date of 1969 is that right

    I show two updates of security with a date of 1969 are those just my Fox fire beginning very slow very very slow This has happened Each time Firefox opened Is a month ago

  • Play, stop after 15 seconds on iPod Shuffle

    My wife I recently purchased an iPod Shuffle and headphones Skullcandy method for Christmas. The plan was to use for the race (Skullcandy are more comfortable than most of the Earbud Headphones, Apple included). Unfortunately, when I try to play musi

  • Multiple SSID may not be broadcast AP 1242

    Hello I tried to set up an AP 1242 Version 12.3 (8) JEA2 with 3 SSIDS, each SSID assigned to a VLAN, but I was not able to broadcast the SSID 3 at the same time. If I broadcast a single other is not available; several times the following message "SSI

  • Can I change a drive partition size without erasing the data?

    Original title: extend a Partition Is it possible to reconfigure the way a drive is partitioned, witout reformatting?  I have a huge hard drive (.5TB) but not has not almost allocate enough space on the system disk.  I want to fly maybe 20 or 30 GB s

  • No internet connection after replacing HARD drive

    Toshiba A665-S5170 I kept getting an error telling me to fix or replace the hard drive, so I had a WD caviar blue 1 TB replacement drive. I reinstalled windows 7 but I can't connect to the internet, even with an Ethernet cable. The convenience store