BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 08-24-2009, 08:12 AM   #1 (permalink)
New Member
 
Join Date: Jul 2009
Model: 9000
PIN: N/A
Carrier: ATT
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Adding a menu item to email, or the browser?

Please Login to Remove!

Hi,

I'd like to add a menu item to the messaging (email) and to the browser that essentially opens my app. Are there any good examples out there that could help me accomplish this?
Offline  
Old 08-24-2009, 08:16 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

See ApplicationMenuItemRepository and ApplicationMenuItem in the API docs.

You extend ApplicationMenuItem, implementing the run() method, then add the item to the repository for the specific application.
Offline  
Old 08-24-2009, 09:07 AM   #3 (permalink)
New Member
 
Join Date: Jul 2009
Model: 9000
PIN: N/A
Carrier: ATT
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Will that be available every time (when the device starts)?
Offline  
Old 08-24-2009, 10:01 AM   #4 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

You have to set these when the device starts. The typical scenario is to create an alternate entry point and register the menu items on device startup.

There is an example of this in the BB developers guide.
Offline  
Old 08-24-2009, 12:44 PM   #5 (permalink)
New Member
 
Join Date: Jul 2009
Model: 9000
PIN: N/A
Carrier: ATT
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am trying to find an example of this with no luck. Any links?
Offline  
Old 08-24-2009, 02:10 PM   #6 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

Try this KB article:

Livelink - Redirection

Also, if you search the manual for "Alternate CLDC Application Entry Point" you will find several references.

Additionally, several of the demo p[rograms that ship with the JDE contain examples od this. Look at NotificationsDemo.
Offline  
Old 08-24-2009, 03:54 PM   #7 (permalink)
New Member
 
Join Date: Jul 2009
Model: 9000
PIN: N/A
Carrier: ATT
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Exactly what I needed! Thanks for your help!
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

Analog Devices AD9005AKM ISA Card & DSP Processor HP Loughborough Sound Images
$119.0
Analog Devices AD9005AKM ISA Card & DSP Processor  HP Loughborough Sound Images  pictureIBASE IB800S-16M INTEL PENTIUM 4 2.00GHZ SBC CPU BOARD W/PROCESSOR AND MEMORY
$100.0
IBASE IB800S-16M INTEL PENTIUM 4 2.00GHZ SBC CPU BOARD W/PROCESSOR AND MEMORY  pictureOPTIMUM T4200 CREDIT CARD PROCESSOR
$20.0
OPTIMUM T4200 CREDIT CARD PROCESSOR pictureWINSYSTEMS LBC-PLUS REV.E 400-0259-000E LCB586PLUS-3327B CPU BOARD
$100.0
WINSYSTEMS LBC-PLUS REV.E 400-0259-000E LCB586PLUS-3327B CPU BOARD pictureAllen Bradley 1756-L71 ControlLogix Processor Ser B 2016
$2800.0
Allen Bradley 1756-L71 ControlLogix  Processor Ser B 2016 picture






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