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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
haoransd
Posts: 64
Registered: ‎08-07-2008
Accepted Solution

Forbid Rotation on Storm

My application has many screens. Most screens allow rotation happens on storm. But there is a one page that I want to forbid rotation happens. For example, when BB's video recorder only has the preview, rotation is allowed, but once recording is started, rotation is forbidded.

 

What should I do to accomplish this? Sample code is appreciated.

Please use plain text.
Administrator
MSohm
Posts: 12,957
Registered: ‎07-09-2008
My Carrier: Bell

Re: Forbid Rotation on Storm

Your application can specify the orientations it allows.  Have a look at the link below for an example.

 

How To - Control the screen orientation
Article Number: DB-00706

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

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
haoransd
Posts: 64
Registered: ‎08-07-2008

Re: Forbid Rotation on Storm

Thanks. Mark is great!
Please use plain text.
Developer
bleucalme
Posts: 22
Registered: ‎10-30-2008

Re: Forbid Rotation on Storm

In this article DB-00706, you should should mention that the code doesn't always work.

 

Origianl post


Quote:

Currently, aApplications start in the current orientation of the BlackBerry Storm, regardless of what modes a developer has specified.  Once a user tilts the device to the correct orientation, the application will change its orientation and then lock it in place.

 

This is an issue with the BlackBerry handheld software that has been sent to our development team.

 

Mark Sohm
BlackBerry Development Advisor
www.BlackBerryDeveloper.com

 

Please use plain text.