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.
03-24-2011 02:24 PM
I've only seen ways to do this with the Blackberry API. How would I go about locking the orientation to, say, landscape, with the Playbook API?
Thanks in advance.
03-24-2011 09:23 PM
I was just a part of the review for this functionality the other day
It will be part of one of the next WebWorks for PlayBook SDK releases (it is not included in Beta 3)..
It will be in form of an optional config.xml entry to lock the orientation to either landscape or portrait. It will not however allow you to turn on/off the lock dynamically in its first release. It will be an application wide setting.
03-27-2011 03:17 PM
And the trick described in this forum thread :
Modifying some of the SDK files...
Does it works ?
04-22-2011 01:57 AM
04-30-2011 01:09 AM
05-01-2011 05:49 AM
05-01-2011 08:06 AM
05-02-2011 05:37 PM
Arghh, this is so not working for me. I have a web works app that is only meant to run in Portrait mode, but whenever I launch my app, the simulator automatically flips to landscape and refuses to re-orient back to portrait (corner swipe is ignored).
I feel like I've tried every permutation, trying to stumble upon the right configuration, but I would really use a helping hand. Basically, it seems like this is what I should have in my config.xml file -- I'd really appreciate somebody pointing out where I am wrong:
My config.xml (for completeness)
<?xml version="1.0" encoding="UTF-8"?> <widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" rim:header="RIM-Widget:rim/widget" version="1.0.3" id="com.eleganttechnologies.quadratic" > <name>Quadratic</name> <description>Solve the quadratic equation on the PlayBook.</description> <author rim:copyright="2011" email="support.bbpb.quadratic@eleganttechnologies.
com" >Elegant Technologies, LLC</author> <rim:loadingScreen backgroundImage="background.png" foregroundImage="cached_images/icon_1024x1024.png" onLocalPageLoad="true"> <rim:transitionEffect type="zoomIn"/> </rim:loadingScreen> <icon src="cached_images/icon_86x86.png"/> <content src="www/ProjQuadratic/playbookSkin/webapp.html"/> <Orientation mode="portrait"/> </widget>
FYI: bbwp version 18.104.22.168
Webworks downloaded on April 25, 2011