Launch of the MenuItem Application

public AppMainScreen()
{

    int placement = 0x350100;
    ApplicationMenuItem ami = new ApplicationMenuItem(placement)
    {
       public Object run(Object context)
       {
          try
          {
                   new App().enterEventDispatcher(); 

          }
          catch (Exception e)
          { 

          }
          return null;

           }

       public String toString()
       {
           return "Launch Application";
       }
    };

       ApplicationMenuItemRepository amir = ApplicationMenuItemRepository.getInstance();

amir.addMenuItem(ApplicationMenuItemRepository.MENUITEM_SYSTEM, ami); 

}

Hi people, I've added a MenuItem to the "overall MenuItem" to launch the my request (ApplicationMenuItemRepository.MENUITEM_SYSTEM).

But when I click on MenuItem, my application is not launched.

new App().enterEventDispatcher(); 

App is the class that contains the main method.

Any thoughts on this people? Thank you...

use applicationmanager.launch

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • Boot from USB CD/DVD RW

    Hi allI would like to ask if it is possible to start the laptop (T.Satellite) an external USB CD/DVD. I have this necessary cause my CD/DVD-RW is not working and I would like to reinstall the system on the Toshiba CD with the hope that everything wil

  • Satellite 2410-303 does not illuminate

    Hello We have a system here on the bench with the following problem: -system does not light-with the inserted battery power LED keeps blinking yellow-connected to the network of continuous flashing yellow LED power-no fan or turns HARD drive noise-ot

  • Satellite P100 - 216 (PSPADE) - CPU / RAM upgrade options

    Hello guys,. I just got a laptop Satellite P100-216 (PSPADE-01400UEN). (card: T5500 - GeForce Go 7600 512 mb, 200GB) It has a Core 2 Duo T5500 inside and I intend to upgrade as well as the RAM to make a good laptop for my wife. The question if CPU is

  • Photosmart Premium C310a: Photosmart Premium C310a does not detect photo paper in the status bar

    Prints on plain paper e.g. A4, but does not recognize the 6 x 4 photo paper in the tray above, asks me to load paper in the tray.

  • will be HDMI input / support hp dv4 3015 tx?

    Hello! No, my laptop model is HP Pavilion dv4 3015tx. He holds a HDMI connector, but I don't know if it's a HDMI input or output. Support HDMI input? Can I connect my Playstation 3 laptop and use it as a display device?