Add new menu item in blackberry to launch my app

2019-08-05 16:58发布

问题:

In my application, I want to to add an item to the BlackBerry menu items and this item can launch my simple application.

how can I do that?

I am using blackberry JDE 7.1.

回答1:

Import the Blackberry sample "MenuDemo" from Blackberry samples; Then you can understand;

To Import Blackberry Samples; Go to

File-->Import-->Blackberry-->ImportBlackberrySamples-->DeselectAll-->and select the MenuDemo from samples; and click finish;(you can change the version at "Use a project Specific JRE");



回答2:

The simplest way is to extend UiApplication for your main class and make sure your development environment is compiling your application as a GUI app, then there will be an Icon placed on the home screen which will launch your app.