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 ?
Emmanuel
04-22-2011 01:57 AM
It's not working in the new SDK. Still have to do the trick thing it seems.
Staff UI Prototyper (read: full-time hacker)
My BB10 apps: Screamager | Scientific RPN Calculator | The Last Weather App
04-22-2011 03:18 AM
Nevermind, it is working ![]()
Staff UI Prototyper (read: full-time hacker)
My BB10 apps: Screamager | Scientific RPN Calculator | The Last Weather App
04-30-2011 01:09 AM
04-30-2011 01:31 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 1.0.0.23
Simulator: 1.0.1.1630
Webworks downloaded on April 25, 2011
Thanks!,
JJ