BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 11-07-2006, 04:12 PM   #1
sappas
New Member
 
Join Date: Oct 2006
Location: Illinois
Model: 7130e
Carrier: Verizon
Posts: 4
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



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


1pcs used TSXMFPP128K Memory Card picture

1pcs used TSXMFPP128K Memory Card

$175.00



Everlasting Comfort Foot Rest Footrest Under Desk Pure Memory Foam picture

Everlasting Comfort Foot Rest Footrest Under Desk Pure Memory Foam

$19.99



Argolladora We R Memory Keepers Heidi Swapp Cinch Binding Machine 71050-9 by AC picture

Argolladora We R Memory Keepers Heidi Swapp Cinch Binding Machine 71050-9 by AC

$79.99



2 - RAM DRAM Tray-Container Box For Server PC Memory DIMM Modules - Fits 100 NEW picture

2 - RAM DRAM Tray-Container Box For Server PC Memory DIMM Modules - Fits 100 NEW

$21.90



Nightingale CXO 6200 Memory Foam, New Headrest, Lumbar Support Ergo Office Chair picture

Nightingale CXO 6200 Memory Foam, New Headrest, Lumbar Support Ergo Office Chair

$415.00



NEW Original Allen Bradley 2080-MEMBAK-RTC Memory Module With RTC Plug-In picture

NEW Original Allen Bradley 2080-MEMBAK-RTC Memory Module With RTC Plug-In

$283.73







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