01-15-2013 01:47 AM
Hey guys,
I've searched extensively but haven't been able to find an answer to this question (perhaps because the answer is NO).
I'd like to run my app in "auto" orientation mode, but when the user reaches a specific screen, I'd like to rotate and lock it to landscape only. When the user pops out of that screen, I'd like it to revert to auto. Any idea on how to accomplish this (if possible)?
Your help is greatly appreciated!
Solved! Go to Solution.
01-15-2013 05:49 AM
Are you talking about BB10?
If yes, yes you can.
Just make sure you have the blackberry.app feature enabled in your config.xml file.
You can then call
blackberry.app.lockOrientation(orientation)
blackberry.app.unlockOrientation()
blackberry.app.rotate(orientation)
orientation can be one of the following values: landscape-primary, landscape-secondary, portrait-primary, portrait-secondary.
happy coding
01-15-2013 09:56 AM
Dude -- you rock. Thanks!