BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-24-2009, 09: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, 09: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, 10: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, 11: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, 01: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, 03: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, 04: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





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