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

Native 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
Highlighted
Developer
Posts: 139
Registered: ‎05-24-2011
My Device: Z30 running 10.2 and Playbook 4GLTE running OS2.1
My Carrier: rogers
Accepted Solution

auto orientation stopped working?

hi gang,

 

i have a pretty simple app, mostly QML with a little c++ helper class.

 

this was working ok last night, but it seems that the app has stopped auto orienting.

 

auto-orient is set in the bar descriptor file.  however, the app won't rotate out of portrait.

 

I am not forcing the orientation anywhere, and this used to "just work" (tm).

 

I'm using the camera in my app, and there's some debug output that looks like it should be auto orienting... 

 

The rear camera unit is accessible.
PpsTimeSettingsObject::newSettingsData() emitted 
NavigationPane: NavigationPaneOnFwdTransitionDone: emitting push transition ended for page: 12 client top: 12 
OrientationSupportPrivate::setSupportedDisplayOrientation: displayOrientation: CurrentLocked 
OrientationSupport::setSupportedDisplayOrientation(): Main application window not active, delaying orientation change until it becomes active. 
OrientationSupportPrivate::onWindowActive(): window now ready, retrying delayed setSupportedDisplayOrientation() call 
OrientationSupportPrivate::retrySetSupportedDisplayOrientation():  retrying delayed setSupportedDisplayOrientation() 
OrientationSupportPrivate::setSupportedDisplayOrientation: displayOrientation: CurrentLocked 
OrientationSupportPrivate::setSupportedDisplayOrientation: successfully changed to CurrentLocked 
OrientationSupportPrivate::setSupportedDisplayOrientation: displayOrientation: All 
OrientationSupportPrivate::setSupportedDisplayOrientation: successfully changed to All 
OrientationSupportPrivate::setSupportedDisplayOrientation: displayOrientation: All 

 

anything else i can check or try to get the app autoorienting again?

 

thanks!

 

J

bron: a cron-like scheduler for BlackBerry 10
http://apps.oddelement.com
Developer
Posts: 828
Registered: ‎10-16-2012
My Device: Red Z10
My Carrier: Rogers

Re: auto orientation stopped working?

[ Edited ]

a few questions.  Is the issue only occuring on 10.2?

 

also have you changed any code since it stopped working?  the simplest tiny non camera related errors can cause most camera functions to stop working. (Trust me, its a pain)

 

One thing you could try doing is creating a new project and manually migrating your code over, that can sometimes cause issues.

 

In the code you posted I did notice that the orientation is set to locked.  Is your devices orientation locked? you may also want to check the bar descriptor to see if orientation is set to Auto-Orient on the "Application" page,

Developer
Posts: 139
Registered: ‎05-24-2011
My Device: Z30 running 10.2 and Playbook 4GLTE running OS2.1
My Carrier: rogers

Re: auto orientation stopped working?

oh, FFS, I'm an **bleep**.

 

screen orientation lock was on..   I've been pulling my hair out for 2 hours!

 

DOH!

 

Thanks!

bron: a cron-like scheduler for BlackBerry 10
http://apps.oddelement.com