11-30-2009 06:30 AM
Hi,
I'm working on a Blackberry application, we use the menu key but I've noticed some blackberry versions (like 8700s...) don't feature this key. Is there any way to know a particular version of Blackberry features this key ?
Thanks in adance.
Solved! Go to Solution.
11-30-2009 06:54 AM
Try the net.rim.device.api.ui.Keypad class. I just did a quick look at it but didn't try anything out.
11-30-2009 06:54 AM
Check whether Keypad.isValidKeyCode(Keypad.KEY_MENU) works for you -- I've never tried it myself.
11-30-2009 07:06 AM
Sorry, the Keypad.isKeyCodeValid(Keypad.KEY_MENU) returns true even on an 8700 (running v4.5.0 handheld software)...
11-30-2009 08:20 AM
We just wrote a utility method that looks at the model number and returns true or false.
11-30-2009 09:31 AM
I first thought at this solution but I'm not really fond of it because each time a new Blackberry model comes out you have to update the method returning true or false... And I find it very surprising that there's no way to know whether your device features this hardware ability or not.
Anyway, thanks for your answers all.
11-30-2009 09:44 AM
I guess you only need to list a couple of models that don't have the menu key (87xx, 7xxx, 6xxx). All new models have the menu key, although that might change in the future...
11-30-2009 09:47 AM
Yeah I know I just hoped there might be a proper way to do it though... But I think I'm going to have to consider it evenutally.
11-30-2009 10:31 AM
It's not really that bad - you only need to look at the first two digits, like "87" or "95" to determine the capabilities.
We default to "yes" on the theory that new devices will have the key. Of course, we always test on the new devices anyway (when we can get them before the customers do) ![]()
11-30-2009 11:17 AM
I've checked on the Internet : Blackberry 9500 Storm does have a key menu... ![]()