Quote:
Originally Posted by BMF
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.