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 188.8.131.52
Webworks downloaded on April 25, 2011