BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-07-2006, 04:12 PM   #1 (permalink)
New Member
 
Join Date: Oct 2006
Location: Illinois
Model: 7130e
Carrier: Verizon
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem adding application menu item to phone application

Please Login to Remove!

The following code adds Application Menu item to the Calendar app but does not add to Phone app.

public final class DemoApp extends Application
{
public static void main(String[] args){
DemoApp app = new DemoApp();
app.enterEventDispatcher();
}

DemoApp(){
ApplicationMenuItemRepository amir = ApplicationMenuItemRepository.getInstance();
amir.addMenuItem(ApplicationMenuItemRepository.ME NUITEM_PHONE,new SampleMenuItem());
amir.addMenuItem(ApplicationMenuItemRepository.ME NUITEM_CALENDAR,new SampleMenuItem());
}

private static class SampleMenuItem extends ApplicationMenuItem{
SampleMenuItem(){
super(1);
}
public String toString(){
return "Sample Menu";
}

public Object run(Object context){
return context;
}
}
}

If anyone is successful in adding application menus to Phone app, please help.

I am using JDE 4.0 and testing on Blackberry simulator 7320.

Thanks
Sudhakar
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

1pc IBS MC Flash 1MB Interbus Flashcard No 2751771
$519.88
1pc IBS MC Flash 1MB Interbus Flashcard No 2751771 pictureBrand New Flash Furniture RUT-188-DOLLY-GG High Density Stack Chair Dolly
$70.02
Brand New Flash Furniture RUT-188-DOLLY-GG High Density Stack Chair Dolly pictureFlash Furniture LF-215-SPICYLIME-GG Vibrant Spicy Lime and Chrome Drafting Stool
$69.34
Flash Furniture LF-215-SPICYLIME-GG Vibrant Spicy Lime and Chrome Drafting Stool pictureFlash Furniture LF-215-NAUTICALBLUE-GG Vibrant Nautical Blue and Chrome Drafting
$69.05
Flash Furniture LF-215-NAUTICALBLUE-GG Vibrant Nautical Blue and Chrome Drafting pictureTSXMFP064P Schneider/Modicon Flash Memory Card
$140.0
TSXMFP064P Schneider/Modicon Flash Memory Card picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.