09-20-2011 03:39 AM
Is there an easy way to determine if device screen supports portrait / landscape views ?
(We need this in order to provide different settings to user)
Until recently we used check similar to this one:
if OS >= "6.0" && AccelerometerSensor.isSupported()
but this code fails on the new Bold 9900 (which has Accelerometer, but does not have landscape mode).
We are looking for solution which does not invlove checking device models manually ...
Thanks in advance !
Solved! Go to Solution.
09-20-2011 04:11 AM
> Then you can try with both the combinations of screen resolution and TouchScreen.isSupportrd().
Thank you for your continiues offer to help us.
Do you have in mind a reliable solution which will work on current set of BlackBerry devices and (hopefully) new models ?
On first glance your suggestions is much worse then checking device model directly.
09-20-2011 04:27 AM
09-20-2011 01:41 PM
You can use the DeviceCapability.isRotationSupported() metho
11-03-2011 11:29 AM
11-03-2011 11:59 AM
Except that some later devices do not. e.g. 9900. So a check is needed.
I'm trying to avoid building apps for specific devices and OSs. I want to build to a minumum OS and let later devices use that. It's a lot less work.