12-05-2008 11:29 AM
Hello, I'm using setAcceptableOrientation(...) to force screen mode to PORTRAIT.
The app renders in PORTRAIT mode and wil stay in PORTRAIT ignoring any subsequent tilts which is what we need.
However, if the application is started while the phone is in LANDSCAPE mode, canvas will paint in landscape mode until the phone is tilted to PORTRAIT mode at least once.
I would like the app starting in PORTRAIT mode ignoring the orientation of the device when app started.
12-09-2008 12:33 PM - edited 12-09-2008 12:34 PM
12-18-2008 04:31 AM
could you tell how do you fixed the orientation in one mode like portrait as i am developing a game which uses SuperCanvas class for all displays and I am using the netbeans software to develop a game. could you send me the code example how to disable the landscape mode.
12-19-2008 01:16 PM
07-21-2009 01:21 PM
This issue has been forwarded to our development team. Thank you for reporting it.Message Edited by MSohm on 12-09-2008 12:34 PM
Hi can anybody please confirm if this reported problem has been resolved, and if so, in what device software version the problem was resolved?
In particular, I am referring to the application always starting in the orientation that the device is currently displaying when using a J2ME canvas, regardless of how you have DirectionControl.setAcceptableScreenDirections configured.
06-29-2010 06:47 AM
Are there any news about this issue? Two years have passed and still no reply. I experience this problem in Blackberry 4.7 emulator and it's really annoying. Was it fixed in 5.0?
06-29-2010 10:43 AM
This has been fixed in 5.0. I tried this in a BlackBerry smartphone simulator running version 126.96.36.1995 and it worked correctly.
11-08-2010 03:58 PM
I'm not sure that issue has been fixed ... It's still there .. (5.0 & 6.0)
Currently ,I am in process of migration of m y code to work with Tiltable devices (like Storm , Torch etc.).
As a temporary fix, I've tried to force a user to use our application in PORTRAIT mode only , by calling either :
// Works only in OS 50
// 4.7 & UP
Both API's call have the same result ... When user is holding Storm or Torch device in Portrait mode and trying to run an application for first time, every thing is perfect ... no complains and it works as expected ... An application stays in the initial mode (portrait) when user tries to tilt it to landscape possition.
But .. when user decides to run the same application for a first time in a Landscape mode .. then it looks like both of these API's don't work properly .... for all screens . It looks like device partially ignored setAcceptableDirections call
So it keeps a device orientation in Portrait mode , but all screens are still in Landscape mode ... (all screens classes are extension of net.rim.device.api.ui.container.MainScreen).