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


XEON E5-2680 V3 12-CORE 2.50GHZ PROCESSOR **USED GOOD** picture

XEON E5-2680 V3 12-CORE 2.50GHZ PROCESSOR **USED GOOD**

$12.99



Used INTEL Xeon W3690 Processor CPU 3.46GHz 12M 6.40GT/s picture

Used INTEL Xeon W3690 Processor CPU 3.46GHz 12M 6.40GT/s

$82.88



ASUS Z8PE-D18 Dual Xeon Server Motherboard 2x E5620 CPU 144GB RAM 12x12GB LGA136 picture

ASUS Z8PE-D18 Dual Xeon Server Motherboard 2x E5620 CPU 144GB RAM 12x12GB LGA136

$349.99



Honeywell Vindicator AE VSS Security Server (548-51010-01) - NEW / Intel Xeon picture

Honeywell Vindicator AE VSS Security Server (548-51010-01) - NEW / Intel Xeon

$2750.00



SR1A5 XEON E5-2690V2 10 CORE 3.00GHz 25M 8GT/s 130W PROCESSOR E5-2690V2 *vm picture

SR1A5 XEON E5-2690V2 10 CORE 3.00GHz 25M 8GT/s 130W PROCESSOR E5-2690V2 *vm

$74.47



Used INTEL Xeon W-2195 SR3RX Processor CPU 2.3GHz 18-Core 24.75MB LGA-2066 picture

Used INTEL Xeon W-2195 SR3RX Processor CPU 2.3GHz 18-Core 24.75MB LGA-2066

$731.88







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