11-25-2012 03:16 PM
I have completed application for BB Playbook and i want to update my application for supporting BB10 Platform and have problem with device orientation. It must to support only horisontal orientation on all devices.
In app.xml file i set aspectRatio none or portrait and it's look good on Playbook , but if i test it on Dev Alpha device it has white borders in up and bottom sides.
Otherwise, if i set aspectRatio landscape it's good on Dev Alpha, but there are white borders on Playbook
How can i set portrait orientation for Playbook and landscape orientation for Dev Alpha ?
11-25-2012 04:10 PM
11-26-2012 01:01 AM
Thanks for answer!
But what about releasing of application? I need to create new product with Blackberry 10 settings? Or create a new file boundle in new release of application and download two .bar (for Playbook & Dev Alpha)?
I don't know if it possible to download two .bar files in one release with different settings of orientation. It will be separete, while downloading to device?
11-26-2012 08:01 AM
11-26-2012 12:30 PM
Thanks for the detailed answer, i solved my problem.
Very interesting that my problem was only in simulator (if set landscape mode - it good on Dev Alpha and portrait mode - in Playbook), but if set landscape orintation in xml settings and then start application devices it will be display correctly for both - in horisontal position.
11-26-2012 01:12 PM
11-27-2012 08:53 AM
11-27-2012 11:42 AM
Are we talking about future-proofing your BB10 apps? I didn't think the current Playbook could even run a bar file that was compiled with the BB10 SDK ? ... or is that only if you use BB10 specific features?
My app : Get set - Get up! Get ready for the snooze revolution.
11-27-2012 01:37 PM
11-27-2012 02:11 PM
The new SDK has been built in a way to allow developers to build responsive applications. The same methodoligies have existed in the HTML5 world for a while now. You can write your UX code to determine a scale or PPI and adjust your UI accordingly. Developing applications like this will definitely take some practice and up front will take a bit longer to develop for. It will pay off down the road though. I believe it's something every developer should eventually learn how to do because of how many different screens are out these days. We are standardizing aspect ratios in the future to make it easier for developers on BlackBerry (especially for game developers).
This article by Sarah Northway is a good intro - http://www.adobe.com/devnet/air/articles/multiple-