10-05-2012 06:19 AM
I am getting issue when trying to launch application at first, it is starting in LANDSCAPE mode, event it is restricted for PORTRAIT mode.
While searching, When I gone through link, I observed that the problem has resolved from 5.0 according to M Sohn's statement(#8). But still getting this problem for 5.0, 6.0 and 7.1.
Can anyone please tell me, whether this problem has solved or not??
Please tell me, if issue still has to resolve.
10-05-2012 08:56 AM
In my experience, this is the normal behavior of the device. If the device is oriented in landscape mode when the app is started, it starts in landscape. Once the device is re-oriented to Portrait, it stays there (if so restricted).
10-05-2012 09:12 AM
The behavior I am getting in my App is- When running the app in LANDSCAPE mode, it runs in PORTRAIT mode but the UI is affecting as per LANDSCAPE mode and when tilting back in PORTRAIT, it is not affecting.
But when launching application in PORTRAIT mode, then it runs fine.
Have you got my problem??
I am attaching file in it, this will helpful to make you understand.
In this image, Bottom bar is showing as per LANDSCAPE mode at the first time of Launch.
10-07-2012 06:00 AM
10-08-2012 02:26 AM
I have restricted App to launch in PORTRAIT mode.
As per image in my previous comment, when I was trying to open it in LANDSCAPE mode then it is fine that opens in PORTRAIT mode but by using Display.getWidth() and DIsplay.getHeight(), it is taking 480 and 360 respectively. But for PORTRAIT, it should take 360 and 480 respectively.
So tell me the better solution for this problem of Display.getWidth() and Display.getHeight().
10-08-2012 03:26 AM
03-31-2014 08:19 AM
I have developed a blackberry app for BB-OS 6 and BB-OS 7. I have restrict my blackberry app in portrait. When i oriented device in landscape mode and open app the device hangs and nothing happend until i remove battery and restart device.
I have use following code to restrict app in portrait mode:
int directions = Display.DIRECTION_PORTRAIT | Display.ORIENTATION_PORTRAIT | Display.DIRECTION_NORTH;
UiEngineInstance engineInstance = Ui.getUiEngineInstance();
if (engineInstance != null)
Please suggest me what is wrong in it.
Thanks in advance.