11-30-2009 06:30 AM
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 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 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)