Search This Blog

Monday, 4 June 2012

How to add a MenuItem in Blackberry App

Hello friends,
 Here is the simple one , how you can add a menuitem in your app menu .......


Initialize :
MenuItem _currentPlayingM = new MenuItem(new StringProvider("Currently Playing"),0,1);

Do something on Click on MenuItem....:
_currentPlayingM.setCommand(new Command(new CommandHandler(){
            public void execute(ReadOnlyCommandMetadata arg0, Object arg1) {
     //Do something on click on menuItem                     



No comments:

Post a Comment