View Single Post
  (#7 (permalink)) Old
lePin Offline
New Member
 
Posts: 13
Join Date: Jun 2008
Model: 7100T
PIN: N/A
Carrier: none
Default 06-12-2008, 12:10 PM

Quote:
Originally Posted by BMF View Post
Hi

I just started programming in the BlackBerry and I was trying to adapt the MenuItem Demo from JDE to add a menu item to the phone application, I would like to get information of the number that was dialed before, but when I select it the context variable is always null, in the menu run().

What am I doing wrong?

Code:
ApplicationMenuItemRepository.getInstance().addMenuItem(ApplicationMenuItemRepository.MENUITEM_PHONELOG_VIEW,this);
ApplicationMenuItemRepository.getInstance().addMenuItem(ApplicationMenuItemRepository.MENUITEM_PHONE,this);
You have registred two MenuItems, so only the second one works properly. As documented, it does not send any object to your application.

But I have no idea why a custom menu isn't registered in the phone log using MENUITEM_PHONELOG_VIEW field.
   
Reply With Quote