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.
05-06-2012 02:44 AM
I'm new to Webworks development, so please bare with me here... I've got a simple photo gallery application up and running, basically just two panes, one that displays thumbnails across the top (side scrollable) and one that displays the image in the center. On click, the image enlarges and can be pinch-zoomed and manipulated.
The problem occurs when trying to change the orientation within the app. It simply doesn't rotate. The config file is set to orientation:auto and if I LAUNCH the app in one orientation or the other, the app remains in that orientation regardless of device orientation.
Any ideas on whether I need to enable some kind of specific functionality in my app? Detect the orientation change and rotate my content? I imagine this should be handled automatically (like on a webpage in the browser) and I shouldn't have to manipulate the code (unless I want the layout to change).
Or, is this a device-specific (i.e. bb10 dev alpha) issue? Any help would be greatly appreciated! Thanks!!
05-06-2012 08:41 AM
Think this may be a dev alpha issue unless I've missed something. Ported a normal webworks app over (which works fine when you switch orientation) and it no longer rotates on the alpha.
05-07-2012 09:57 AM
Hi supraking. this behavior is a current limitation of the Dev Alpha (keyword - Alpha ) product. It will be fixed and you will be able to rotate your WebWorks applications to both portrait and landscape orientation.
There really should be a defect assigned for this, and I'm not seeing one listed in the framework repo (I think one just hasn't been filed yet).
Would you like to contribute your feedback by filing a bug here? https://github.com/blackberry/BB10-WebWorks-Framew
Otherwise I can do it - but wanted to offer you a chance to participate in the open source project first.
05-07-2012 10:33 AM
You can follow this issue here:
08-01-2012 10:55 AM - edited 08-01-2012 10:58 AM
Adam, is there a way we can force orientation to portrait/landscape ?
The rim: orientation element seems ineffective.
I believe this is related ?
Or there's something wrong in my config.xml ?
<?xml version="1.0" encoding="UTF-8"?> <widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="18.104.22.168" id="LLRL" xml:lang="en"> <author href="http://www.xyz.com/" rim:copyright="Copyright 2012-2013 xyz">xyz</author> <name>LLRL beta</name> <description> Practice your memory and your thumbs agility. </description> <rim:orientation mode="landscape" /> <rim:navigation mode="focus" /> <rim:loadingScreen backgroundcolor="#000000" /> <rim:category name="games" /> <icon src="images\menu\icon3.png" /> <content src="index.htm"/> <feature id="blackberry.identity" required="true" /> <feature id="blackberry.push" required="true" /> <feature id="blackberry.system" required="true" /> <feature id="blackberry.app" required="true" /> </widget>
08-01-2012 11:45 AM
You are correct, the rimrientation element currently is not recognized by the BB10 SDK (it is supported by the Tablet OS SDK). As I understand it, that will be enabled and working correctly in the next version of the BB10 WebWorks SDK release.