Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 638
Registered: ‎07-02-2009
My Device: Not Specified

screen orientation @ runtime

Hi all,

 

Is it possible to set two different orientations (Landscape and Potrait ) for two different screens that comes with the same app.

 

In detailed, the orientation of the app is set to POTRAIRT mode. App have an option to play Video, and client wants the video to be in LANDSCAPE mode only.

 

I am unable to manage the  app in the potraint and only the video in Landscape mode.

 

When the app is intially started, it always open in POTRAIT mode(by force).

 

When its time to play video in a different screen( created a custom video player with a different screen), even though video started playing the app remains in POTRAIT ubtiill and unless BB is tilted by the user, once it is tilted then the video will play in LANDSCAPE and gets lock there. 

 

The app remains in LANDSCAPE even when the user quits the video and not comes back to POTRAIT.

Thanks and Regards,
PraveenGoparaju.
Developer
Posts: 638
Registered: ‎07-02-2009
My Device: Not Specified

Re: screen orientation @ runtime

any updates friends..

Thanks and Regards,
PraveenGoparaju.
Highlighted
New Contributor
Posts: 5
Registered: ‎12-10-2010
My Device: Storm 9500
My Carrier: Verizon

Re: screen orientation @ runtime

I have a similar issue: my app does not switch to landscape mode unless the phone is tilted - using Ui.getUiEngineInstance().setAcceptableDirections() . I have seen that forcing a certain screen orientation is possible ( http://appworld.blackberry.com/webstore/content/832?lang=en&curr=THB ). If started in portrait mode, the game sets its orientation to landscape, and does that by somehow simulating an accelerometer event (the console output is identical with what I get when rotating the phone: a rotationStart followed by a rotationEnd).

I would really appreciate any kind of help.