04-19-2011 10:14 AM
Are there any new APIs in the new SDK and build
We were (sort of) expecting a way to force landscape programattically (my apps look dreadful in Portrait)
The other highly anticipated one would be the Advertizing Service
I know we tend to want rather want things before you're readly to let us have them so we'll (or at least I will) be understanding as we know you have the launch today in the USA
Solved! Go to Solution.
04-19-2011 10:51 AM - edited 04-19-2011 10:55 AM
Hi peardox. Thanks for your post.
In this new version of the WebWorks SDK for PlayBook we do support screen orientation. All you have to do is to use the new <rim: orientation> element in config.xml, and the WebWorks SDK takes care of everything.
You may want to try adding the following element in config.xml:
<rim: orientation mode="auto" />
The mode can be portait, landscape or auto (the default mode).
Hope this helps!
04-19-2011 11:14 AM
Not quite right
[INFO] Parsing command line options
[INFO] Parsing bbwp.properties
[INFO] Validating WebWorks archive
[INFO] Parsing config.xml
[ERROR] Failed to parse config.xml - bad XML structure
This is understandable as the line you give us is not properly formatted XML
The config.xml is for a friend (he draws - exceedingly well) I code
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="220.127.116.11">
<description>Ancient Egyptian Papyri translations, edited for the modern reader.\n\nIts the Ancient Egyptians in their own words supported with background text and full colour illustrations.</description>
<author rim:copyright="(c) Eyelid Productions 2010" email="EgyptianAnecdotes@markmillmore.com" href="http://www.eyelidproductions.co.uk">Mark Millmore</author>
<license>All rights reserved. No part of the publication may be reproduced, without the prior written permission of the copyright owner.</license>
<rim: orientation mode="landscape" />
<access subdomains="false" uri="http://www.discoveringegypt.com">
<feature id="blackberry.app" required="true" version="18.104.22.168"/>
<feature id="blackberry.identity" required="true" version="22.214.171.124"/>
<feature id="blackberry.invoke" required="true" version="126.96.36.199"/>
<feature id="blackberry.invoke.BrowserArguments" required="true" version="188.8.131.52"/>
<icon rim:hover="false" src="icon.png"/>
04-19-2011 11:33 AM
Indeed, the line was not properly formatted for avoiding the happy faces to show on the tag.
You can find a sample config.xml (including the orientation tag) in the Developer Guide at http://docs.blackberry.com/en/developers/deliverab
<?xml version="1.0" encoding="utf-8"?> <widget xmlns=" http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="184.108.40.206"> <name> The example application</name> <description> A sample application to demonstrate some of the possibilities. </description> <rim:orientation mode="auto"/> <rim:loadingScreen backgroundImage="background.png" foregroundImage="foreground.gif" onLocalPageLoad="true"> <rim:transitionEffect type="zoomIn"/> </rim:loadingScreen> <icon src="icons/example.png"/> <content src="index.html"/> <feature id="blackberry.ui.dialog"/> <access uri="http://www.somedomain.com" subdomains="true"> <feature id="blackberry.app.event"/> <feature id="blackberry.invoke"/> </access> </widget>
04-19-2011 11:51 AM - edited 04-19-2011 11:55 AM
Make sure not to include a space between "rim:" and "orientation". The following are valid entries:
<rim:orientation mode="auto" /> <rim:orientation mode="landscape" /> <rim:orientation mode="portrait" />
Note if you do not explicitly define this element in your config, then "auto" is assumed.
04-19-2011 12:28 PM
Sorry to moan
I just noticed another line of XML
From the XML NS 220.127.116.11 is the phone distro
Well - that is not the NameSpace for the new WebWorks for Playbook
Apologies - answering it at this stage will stop more on this subject I would guess
I'll try a build
04-19-2011 12:49 PM
I've tried (very hard) to break it
The solution presented above does indeed work
Thank you everyone @ BB - you just made a lot of us very happy!
If someone manages to break it - PLEASE don't tell me - long day trying to sort this out = OK Do tell me, just not tonight