Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Contributor
abdullah71
Posts: 2
Registered: 06-17-2011
My Carrier: Grameen Phone

view mode / orientation problem in 9900 series

I have developed a simple application that runs fine in BB OS5 and BB OS6 devices but while running it in 9930 simulator or 9900 device, the orientation is appearing as landscape. I tried to add following code in my mainscreen classes but no luck so far:

 

protected void onUiEngineAttached(boolean attached) {

 super.onUiEngineAttached(attached);  Ui.getUiEngineInstance().setAcceptableDirections(Display.DIRECTION_PORTRAIT);   

}

 

Some other applications are running fine in 9930 simulators, but this particular application is having the issues with orientation. 

 

if anyone else found the same glitch and made a solution... please share with us

Please use plain text.
Administrator
MSohm
Posts: 11,465
Registered: 07-09-2008
My Carrier: Bell

Re: view mode / orientation problem in 9900 series

Could you post a sample app that triggers this behaviour?  If you don't want to share it publicly in the forums you could create an issue in Issue Tracker and attach it there.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Please use plain text.
Developer
Hithredin
Posts: 251
Registered: 06-03-2010

Re: view mode / orientation problem in 9900 series

I reproduce this error.

 

I guess it's due to the fact that the portrait view is not defined by the orientation of the physical keyboard.

Instead the fact that width < height define the portrait view for the 9900, which is not logical for a Bold or a curve.

---------------
Eclipse Helios - OS 4.6; 5.0; 6.0
Please use plain text.