JDE 4.2 + default ApplicationMenuItem

Hello

I join some menu items customized with the BB system menu. As follows:

ApplicationMenuItemRepository.getInstance().addMenuItem(ApplicationMenuItemRepository.MENUITEM_EMAIL_EDIT ,this);

It works well enough. My custom menu items appear in the menu.

But anyone know anyway that I can get my custom menu items appear in the default short list of menu items that appears when the user presses the trackball?

ApplicationMenuItems only appear in the menu, not the reduced.  Third-party applications are not able to add ApplicationMenuItems to the menu of built-in applications reduced.

Tags: BlackBerry Developers

Similar Questions

  • Simulator crashing / help please

    We have the thread here, but two different (me being one of them) are not able to launch the Simulator; We get the error below.

    http://www.BlackBerryForums.com/developer-forum/137916-Simulator-not-running-component-Pack-4-5-fled...

    Signature of the problem:
    Problem event name: APPCRASH
    Application name: fledge.exe
    Application version: 2.9.0.52
    Application timestamp: 4846be37
    Fault Module name: kernel32.dll
    Fault Module Version: 6.0.6000.16386
    Timestamp of Module error: 4549bd80
    Exception code: c0000005
    Exception offset: 0004784c
    OS version: 6.0.6000.2.0.0.256.1
    Locale ID: 1033
    Additional information 1: 8fe7
    More information 2: 0b5055ee7be24804e07f27c565654060
    3 more information: f1cd
    Additional information 4: 9d032651a2765081989cf1e53edbefca

    I had the same problem during the migration from JDE 4.3.0 to 4.5.0. Whenever I started the Simulator, it crashed immediately. Disable UAC is an excellent suggestion, because it worked for me. However, I'd rather have UAC active. Then I found another simple solution. Rather than install the JDE in the default programs folder I installed it in the My Documents folder.

  • ApplicationMenuItem called with null in JDE 4.6 when you enter the phone number

    When I install a custom phone app, ApplicationMenuItem and

    try to enter a number on the keypad of the native Dialer, and then click the custom menu,

    my custom ApplicationMenuItem is called with a null context object.

    This same code + test case works well under the 4.5 JDE / 8300 emulator

    and device 8320, but fails under JDE 4.6 with the BB 9000 emulator

    and device

    To reproduce the bug:

    * Build/launch of the attached test application

    * Send with previous key

    * Go to the native Dialer

    * Enter "123" on the keyboard of the phone

    * Click on the trackball

    * Choose Bug49 the context menu

    * It will appear a dialog box indicating "context has the null value - is this a bug?

    NOTE that if, rather than enter a number on the keypad of the phone with step 4.

    a call log is selected, then it works and a non-null context object is passed.

    Can I make it work?  If this is a known bug, are

    It no work around?

    import net.rim.blackberry.api.menuitem.ApplicationMenuItem;import net.rim.blackberry.api.menuitem.ApplicationMenuItemRepository;import net.rim.device.api.ui.UiApplication;import net.rim.device.api.ui.component.Dialog;import net.rim.device.api.ui.component.LabelField;import net.rim.device.api.ui.component.RichTextField;import net.rim.device.api.ui.container.MainScreen;
    
    public class Bug49 extends UiApplication { public Bug49()    {     super();      Bug49Screen screen = new Bug49Screen();       pushScreen(screen);       ApplicationMenuItemRepository amir = ApplicationMenuItemRepository.getInstance();     Bug49NativeMenu bug49NativeMenu = new Bug49NativeMenu(0);     amir.addMenuItem(ApplicationMenuItemRepository.MENUITEM_PHONE, bug49NativeMenu ); }
    
      public static void main(String[] args) {      Bug49 b49 = new Bug49();      b49.enterEventDispatcher();   }
    
       static class Bug49Screen extends MainScreen {     public Bug49Screen() {            super();          setTitle(new LabelField("Hello"));            add(new RichTextField("Hello"));      } }
    
      static class Bug49NativeMenu extends ApplicationMenuItem  {     public Bug49NativeMenu(int order) {           super(order);     }     public Object run(Object context) {           if (context == null) {                Dialog.alert("context is null -- is this a bug?");            }         else {                Dialog.alert("context not null");         }         return null;      }     public String toString() {            return "Bug 49";      } }}
    

    It is a problem in the version of BlackBerry device software 4.6.0.  It has been fixed in version 4.7.0.

  • Open a file in a default application

    Hi all!

    I use to develop a BlackBerry JDE 4.2 application. I want to open a file in the default application supported by the BlackBerry device.

    Let me explain in depth. Whenever the user selects a file to open, I want to open this file in the default application without talking to the unit in which the application file should be opened. JDE 4.3 and later, this can be achieved by using javax.microedition.content.Invocation and javax.microedition.content.Registry API. Here is the snippet of code, how it can be done in JDE 4.3 or later.

    Invocation invocation;
    
    invocation = new Invocation("file:///store/samples/contacts/BlueDress.png");
    
    Registry _registry=Registry.getRegistry("net.rim.device.api.content.BlackBerryContentHandler");
    
    _registry.invoke(invocation);
    

    The above code opens the BlueDress.png file in the default application.

    But this is not supported in JDE 4.2 and earlier version.

    Can someone help me how can I achieve the same JDE 4.2?

    Thank you

    -Rohan

    As you say, we support JSR-211 Content Manager API in JDE/Handheld versions v4.3.0.

    For the mime-types that can support the BlackBerry browser, you can call the browser with the particular URL (whether on the internet or the local file system). Take a look at these KB articles:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/How_To_-_Invoke_the_default_browser.htm...

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/How_To_-_Invoke_a_non-default_browser_s...

    Tariq

  • Simulators not appearing is not in the JDE

    My company has recently switched us to new computers using Windows 7, which requires me to re - install the simulators that I had used and the JDE (JDE is 5.0 and is necessary according to the needs of the customer).

    Initially, I've deployed the Simulator on the default folder, but got an error whenever I started it. The research forums, it was suggested that the error would leave if I have deployed in a different folder.  So, I have deployed the JDE in a different directory.

    Then, I tried to install the Verizon 9650 Simulator.  I have deployed it in the same folder that the JDE is deployed (for example simualtor is c:\...\dev\BlackBerry SmarthPhone simulators 6.0.0 and jde is in c:\...\dev\BlackBerry JDE 5.0.0). I stop the JDE during installation of the Simulator.  When I restarted the JDE, the Simulator was not visible in the list of Simulator (by default the simulators are and I am able to start them). Any thoughts on what I might need to do to get the JDE to recognize simulators?

    Thanks in advance,

    Dennis Brundage

    Simulator installers should update the JDE when they are installed.  Try one of these installers as administrator.  They probably fail update the installation location of the JDE.

    Or you can try to configure them manually.  To do so open the file SimPackage-# .rc located in the installation directory of the Simulator with a text editor.  Copy the decommentes lines (those that do not start with a #) and paste them into the SimPackage - JDE.rc, located in the bin of the BlackBerry JDE installation directory directory.

  • BB JDE Howto add different simulators

    Hi all, new to this so I'm sure it's stupid, but I jumped a whole day trying to find all the docs...

    BlackBerry JDE running on Windows 7 64 bit, I just the default installation work and functioning of Hello World, now would like to run a simulator different (8330).  Have installed 4.3 and 4.5, which should support the 8330, but still do not see them.  It doesn't seem to be a way to connect the dev environment Simulator installation, in addition to the copy of a bunch of files.

    I guess I need a tutorial on how overall JDE dev environment available are-folders, files, file extensions, etc., what is needed where.

    Pointers?  Thank you, Steve!

    Found, you must copy the start controls since the Simulator launch .bat file in the preferences for this particular Simulator.

  • Wheel/Trackball JDE 4.1

    All,

    I know this is an old topic, but I still have to find a solution that works.

    I developed an application that must run on devices both wheel and trackball. Because the wheel devices running OS 4.1, according to RIM, I have to use the JDE 4.1.  Unfortunately the trackball is not supported until the JDE 4.2.

    I built a screen that extends screen and adds a HorizontalFieldManager, which has a number of VerticalFieldManagers added to it so that I can display a table of data in format rows/columns (essentially following the example of the RIM on the way to display a data table).  To view my data I created an array of LabelFields, auditor trackwheelRoll and the setFocus() to allow custom movement when you move horizontally between the VFMs (this avoids to go to the first/last field in adjacent resources optimization).

    As you'd expect, the trackwheelRoll listener knows nothing trackballs and can't handle the identification of horizontal movement.  Instead, the code of the default RIM intervenes and automatically move to first/last field of adjacent resources optimization.  Trackball users a frustrated because the movement between the VFMs is very frustrating to keep track where you were at prior to the move.

    I know it's hard to explain and code sample would be quite long, but if necessary, I'll post a code.

    Anyone found any way to support the trackball in the JDE 4.1 environment?  RIM suggested to manage the movement of the trackball when the user clicks on the ball/menu key, but this does not allow me to move to specific areas within an optimization of adjacent resources I need.

    I looked at the FlowFieldManager, but I don't know that it will allow me to move horizontally and vertically beyond the limits of the visible screen (by default the FlowFieldManager will only scroll vertically and only generate fields horizontally that adapts to the screen that is not desired).

    Proposals and guidance would be greatly appreciated.

    fbwing

    One solution is to create the version of the wheel of your app in the BlackBerry JDE 4.1 version and then use version 4.2 BlackBerry JDE to take advandtage the navigation methods.

    This would require the maintenance of the two versions of the source to your screen and have the users to install the correct version of the application.

  • Add the Menu item to default custom Blackberry file browser

    Hello

    I try to add the Menu item by default Blackberry file browser.

    I want to add the menu item 'PRINT' files. It is when I browse through the media-> Explore-> photo, we get a list of images and when clicked on the Menu. I expect the element menu to print it.

    I use ApplicationMenuItemRepository to achieve this. And the documentation says.

    MENUITEM_FILE_EXPLORER
              ApplicationMenuIteminstances registered with this ID appear when the file Explorer application is running.

    MENUITEM_FILE_EXPLORER_BROWSE
              ApplicationMenuIteminstances registered with this ID appear when a user uses the Windows Explorer application to browse files and folders.

    MENUITEM_FILE_EXPLORER_ITEM
              ApplicationMenuIteminstances registered with this ID appear when a user uses the file Explorer application to open a file.

    Whence this Explorer of files mentioned in the CIHI means. I added the Menu item in the browser, and I could see the IMPRESSION here. But I don't know where this IMPRESSION would be visible IF we add the menu item to one of them.

    Thanks in advance.

    Provision ApplicationDescriptor solved my problem.

  • Debugger JDE accident

    Hi, I switch to the use of the JDE debugger and attach the device.

    Every time attach the debugger device JDE application to run.

    For the last two days, I thought that my app or the debugger breaks down,

    But it is not the case, I press F5 to continue and I do not get the impressions of debugger.

    It wasn't the default behavior. I was wondering how I can cancel

    This. My project is in eclipse, debug w / JDE because eclipse jde

    debugger hangs and reboot my device. and there is no break

    points in my eclipse project. Just thought it's weird.

    Never rich, I found that the break at startup box is checked in the menu.

  • Write a bitmap to a file *.bmp or *.png with JDE 4.5

    Does anyone know a function to write a bitmap to a file standard riphics for example *. BMP *. PNG or something like that?

    I'm Trying with JDE 4.5 on the default curve Simulator.

    Please see this thread.

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=736&query.ID=1057...

  • IntelliSense in JDE and Eclipse PlugIn

    Newbie here! I need to develop to the 5.0 platform. I downloaded JDE for 5.0 and got example HelloWorld working. My previous 2 years were with Eclipse so after a lot of frustration, I have Eclipse Helios working with the pack 5.0 component. But I noticed on the JDE and Eclipse that intellisense does not seem to be available / work. In other words, if I type:

    Dim myString As String = "";

    int myInt = 0;

    myInt = myString.

    I'm expecting the IDE to display the methods available for the String object immediately after my typing of the period. Do BB d and Eclipse Plugins support this, and if so, any idea why this doesn't work?

    Thanks in advance!

    In JDE, go to Edit/Preferences/Editor/semi-automatic and select:

    Include the java.lang.Object methods...

    Not sure why this is not however the default value.

    In Eclipse, it seems to work, but I don't know why (I won't change anything).

    I'm good to go for now!

    TX for the ear!

  • Eclipse plugin JDE and 4.5.0 simulators

    I have Eclipse with the JDE plugin runs very well but can't seem to change the default Simulator for a given version. For example, when you use the 4.5.0 Simulator game, Eclipse will always run the Simulator 8300 but I really want to test with the 8130 Simulator. I have the same problem with 4.2.1 still running 8800 sim card - I can't change for the 8700-blue for example.

    I can run the 4.5.0 8130 Simulator manually using the file standard 8130.bat but I want to leave running within Eclipse.

    I tried tweaking different files but can't Eclipse to change what Simulator it runs. Could someone tell me please in the right direction? Is there a secret file somewhere (I tried to change some of the RC files, but that did not help). Is there a registry setting? Or--shudder--is this hard-coded?

    I use Eclipse with JDE plugin 1.0.0.22 3.3.1.1.

    Thanks for your time.

    In fact, you can change it from within eclipse itself.  Simply edit the 'run configurations' and 'edit configuration' settings to implement a new Simulator.  It is also in the same place where you can configure other settings for the device Simulator (i.e. PIN for use, clear the NVRAM etc. etc.).

  • BB JDE 4.7.0 trying to build/run sample source apps errors

    Welcome,

    I'm trying to build and run some of the source sample apps that install with JDE. After struggling with the apparent x 64 defects of decision-making supported for a while, I started my old system 32-bit, all had installed, and it opened with the samples.jdw workspace - looked like success is at hand, to me.  But I tried build and run several applications, all closed with a message like this:

    Building HelloWorldDemo
    C:\Program Research In Motion\BlackBerry JDE 4.7.0\bin\rapc.exe-silencieux import =... name of code \lib\net_rim_api.jar = com\rim\samples\device\helloworlddemo\HelloWorldDemo com\rim\samples\device\helloworlddemo\HelloWorldDemo.rapc warnkey = 0 x 52424200; 0 x 52525400; 0 x 52435200 "C:\Program research in Motion\BlackBerry JDE 4.7.0\samples\com\rim\samples\device\helloworlddemo\HelloWorldDemo.java" "C:\Program research in Motion\BlackBerry JDE 4.7.0\samples\com\rim\samples\device\helloworlddemo\img\helloworld_jde.png"
    I/o Error: CreateProcess: javac-source 1.3 - 1, 3 - g - O d 'C:\DOCUME~1\mmcginty\Local Settings\Temp\rapc_450f47b5.dir' - bootclasspath to target... \lib\net_rim_api.jar - classpath... \lib\net_rim_api.jar "C:\Program research in Motion\BlackBerry JDE 4.7.0\samples\com\rim\samples\device\helloworlddemo\HelloWorldDemo.java" error = 2
    Error while building project

    I have also installed the Java plug-in for Eclipse (which is the environment that I would prefer to use) and copied a couple of samples in its workspace.  After I find it necessary to move the .java files in the. \src dir and adding net_rim_api.jar as an external .jar, I get the following error when you try to debug:

    java.lang.ClassFormatError: field modifiers illegal net/rim/device/api/ui/UiEngine classroom: 0x1A
    at java.lang.ClassLoader.defineClass1 (Native Method)
    at java.lang.ClassLoader.defineClass (unknown Source)
    at java.security.SecureClassLoader.defineClass (unknown Source)
    at java.net.URLClassLoader.defineClass (unknown Source)
    in java.net.URLClassLoader.access$ 100 (unknown Source)
    java.net.URLClassLoader to $1.run (unknown Source)
    at java.security.AccessController.doPrivileged (Native Method)
    at java.net.URLClassLoader.findClass (unknown Source)
    at java.lang.ClassLoader.loadClass (unknown Source)
    to Sun.misc.Launcher$appclassloader$ AppClassLoader.loadClass (unknown Source)
    at java.lang.ClassLoader.loadClass (unknown Source)
    at java.lang.ClassLoader.loadClassInternal (unknown Source)
    at java.lang.ClassLoader.defineClass1 (Native Method)
    at java.lang.ClassLoader.defineClass (unknown Source)
    at java.security.SecureClassLoader.defineClass (unknown Source)
    at java.net.URLClassLoader.defineClass (unknown Source)
    in java.net.URLClassLoader.access$ 100 (unknown Source)
    java.net.URLClassLoader to $1.run (unknown Source)
    at java.security.AccessController.doPrivileged (Native Method)
    at java.net.URLClassLoader.findClass (unknown Source)
    at java.lang.ClassLoader.loadClass (unknown Source)
    to Sun.misc.Launcher$appclassloader$ AppClassLoader.loadClass (unknown Source)
    at java.lang.ClassLoader.loadClass (unknown Source)
    at java.lang.ClassLoader.loadClassInternal (unknown Source)
    at java.lang.ClassLoader.defineClass1 (Native Method)
    at java.lang.ClassLoader.defineClass (unknown Source)
    at java.security.SecureClassLoader.defineClass (unknown Source)
    at java.net.URLClassLoader.defineClass (unknown Source)
    in java.net.URLClassLoader.access$ 100 (unknown Source)
    java.net.URLClassLoader to $1.run (unknown Source)
    at java.security.AccessController.doPrivileged (Native Method)
    at java.net.URLClassLoader.findClass (unknown Source)
    at java.lang.ClassLoader.loadClass (unknown Source)
    to Sun.misc.Launcher$appclassloader$ AppClassLoader.loadClass (unknown Source)
    at java.lang.ClassLoader.loadClass (unknown Source)
    at java.lang.ClassLoader.loadClassInternal (unknown Source)
    Exception in thread "main".

    When I try to run the same sample, he complains no head type, even if the field is entered in the config to run (just as it is in the debug configuration.)

    Anyone know what I'm doing wrong here?

    TIA,

    Mark McGinty

    Addendum:

    When I run IDE. BAT (via the shortcut created in the start menu) on my x 64 system, I get the following error in a pop-up window:

    "Cannot find RIMIDEWin32Util.dll.  It is an essential component of the IDE. »

    This file exists in the same directory as the lot.  This error does not on my 32-bit system, so apparently a x 64 32-bit compatibility layer support problem?  (God forbid we would never lack of x 64 native dev tools.)

    I assume that you are addressing the BB JDE problem, and that by JDK you are referring to the Sun JDK (which installed to C:\Program Files\Java\jdk1.5.0_19, by default.)  I added the JAVAHOME env variable with that path as the value, and also appended that path + \bin to the PATH variable -- no change.
    

    Go to the window "CMD" (start-> Run-> CMD) and type javac and press ENTER. The use of the java compiler appear?

    However, I noticed that the target dir is a sub in my Temp folder?  Why is it using a tunneled path name?  (e.g., "C:\DOCUME~1\mmcginty\Local Settings\Temp\rapc_769c5235.dir")  Tunneled paths may not be valid on all systems, including mine, I hate that crap, there's no reason, other than lame apps that depend on it, for them to persist to this day -- they were designed for FAT16 down-level compatibility, for cryin out loud, will we never be done with that?
    

    Compiler CAP makes the files and temporary files during the compilation process. It is not a wrong behavior. It is a part of the compilation process.

    btw, I made some headway on the Eclipse Java plug-in end, I found I must create the project as a "Blackberry Project" (by clicking "Other" from the New menu, and choosing BB from the tree.)  Now the app builds without errors but it only creates .class files, and it does not deploy the app to the simulator.
    

    I left using Eclipse a long time ago. Now I do not use it at all. So I have no information about its glitches, sorry.

    From my point of view JDE is best tool.

    Make sure that javac is accessible from the window cmd and post here how are you.

  • Have JDE 4.6, but can't find Simulator for BB 9000

    Hi guys.  Thanks to many of you, my app works now.  He works with JDE 4.5 in a physical 8700 c both in the Simulator.  I use the Eclipse plugin and I have various installed Blackberry JDE.

    I need simulate the application on BB 9000. Read here, it seems that 9000 Simulator would have disclosed upward in 4.6.  I did 4.6 help/softwareUpdates /... and it is installed.  But when I run / 'Run Configurations' I see "Default Simulator" and 8900-JDE.

    How can I find the 9000 Simulator?  Help much appreciated - fd

    You must download JDE 4.6.0 is BB Simulator "BOLD" on the inside.

    You can also download a standalone here Simulator: Simulator of Blackberry

  • Remove packages of the JDE Simulator?

    Is anyone know how you can remove packages of the JDE list Simulator without uninstalling them? I want to remove all the BONES ' are older that are running in the most recent d (ie the 4.5,4.6,4.7 of the list of Simulator JDE 5.0). After the installation of several packages of Simulator, I had to go back and change the memory allowed in the JDE default 256 / 512 M to 1024M so that the can load up. The only thing I can think of is the simulators causing the JDE in need of more memory for the files of configurations. But I think its crazy to the JDE go on using 256 MB or 1 GB for memory to load and run. And im using Windows 7 for my development environment.

    After some checking, it seems that there is some sort of threshold with the installation of the packages of Simulator and the memory required to start the JDE. I had 15 Simulator packages installed and it took 1 GB of memory to load the JDE, but once I removed several that I didn't use and he got up to 9 installed packages, memory fell to the bottom of the preload of 256 MB. But I still have not found a way to delete some individual packages JDE, it seems it's all or none with simulators.

Maybe you are looking for