11-16-2011 08:23 AM
Hi, I'm currently using Ui.getUiEngineInstance().setAcceptableDirections(D
Is there a way to force/ set the display to portrait mode when the application is started in in landscape orientation?
Solved! Go to Solution.
11-21-2011 10:20 AM
You are seeing the expected behaviour. If the device is not in the desired orientation when the application starts you can prompt the user to rotate the device before displaying your application screen.
11-21-2011 10:42 PM
Hi, thanks for the reply.
I tried using:
if (Display.getOrientation() == Display.ORIENTATION_LANDSCAPE)
{
UiApplication.getUiApplication().pushScreen(new ChangeOrientationView()); // Notify user to change orientation
}
else
{
startApp(); // Start application
}
But this only works for devices such as 9810 where the display width is smaller than the display height (default orientation of the display is portrait). It becomes a problem when I try to run this on devices such as the Bold 9000 where the default orientaion of the display is landscape.
If you're confused about what I'm trying to do, I want to lock the display in the state where the BlackBerry logo is on top.
Do you have any suggestions on how to do this?
11-21-2011 11:21 PM
hi alfonsn,
Check out this link..
--------------------------------------------------
please click 'Accept Solution' on posts that provide the solution to the question you've posted. Don't say "Thanks", press 'Like' button instead!