08-28-2009 11:26 AM
I have an application that presents a context related second menu when the scroll wheel button is clicked on various items. The code works perfectly on modern phones with one exception. In a recent test, a user complained that clicking the scroll wheel was bringing up the standard blackberry menu rather than the secondary context menu.
I've narrowed this down to a setting in the phones preferences. It appears that Options->Screen/Keyboard->Menu Style must be set to Short Menu for this to work. If it's set to Full Menu, only the blackberry menu is available. I can see this problem manifesting itself often enough in the shipped product that it worries me. Is there a progromatic way to check this setting and either warn the user if it's set or more preferrably override the behavior and always make it act as if "Short Menu" is set within my application?
Thanks,
Travis
Solved! Go to Solution.
08-28-2009 12:21 PM
08-28-2009 12:39 PM - last edited on 08-28-2009 12:41 PM
08-28-2009 12:43 PM
> For example, on devices with a trackwheel there are no context menus at all.
I have a device with a track wheel and the context menu works perfectly in my application, but I do get what you're saying with the context menu being a subset of the full menu. Thank you for the reply. I'd really like to be able to check if the short menu option is set in the global settings, so I can lay out the menu accordingly.
08-28-2009 12:53 PM
08-28-2009 12:56 PM
I'm not sure i follow you. This works on my Curve 8900 (with trackwheel):
protected void makeMenu(Menu menu, int instance) {
if (instance == Menu.INSTANCE_DEFAULT) {
System.out.println("blackberry menu");
} else if (instance == Menu.INSTANCE_CONTEXT) {
System.out.println("trackball menu");
}
}
08-28-2009 01:04 PM
08-28-2009 01:06 PM
Ok, I follow you (sorry for the confusion). Final question, do you know if there's a way to check the settings regarding what mode the menu is set to (Full or Short)?
08-28-2009 01:16 PM
08-28-2009 01:24 PM