Add new menu item in blackberry to launch my app

南楼画角 提交于 2019-12-11 14:38:54

问题


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.



来源:https://stackoverflow.com/questions/9227945/add-new-menu-item-in-blackberry-to-launch-my-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!