Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Contributor
kamote_empire
Posts: 11
Registered: ‎09-28-2012
My Device: 9800 and Playbook
My Carrier: Sun Cellular

BB10 Gold SDK Orientation for config.xml?

What is the new code for the config.xml in setting the orientation of your application? when I try to compile with gold sdk it says that my code is DEPRECATED

Please use plain text.
BlackBerry Development Advisor
Nukul
Posts: 115
Registered: ‎06-06-2011
My Device: 9800
My Carrier: Rogers

Re: BB10 Gold SDK Orientation for config.xml?

https://github.com/blackberry/BB10-WebWorks-Samples/pull/53/files

That's the update to the sample
You can see the difference there :smileyhappy:
@nukulb
Please use plain text.
Contributor
kamote_empire
Posts: 11
Registered: ‎09-28-2012
My Device: 9800 and Playbook
My Carrier: Sun Cellular

Re: BB10 Gold SDK Orientation for config.xml?

What do I remove here?

<feature id="blackberry.invoked" required="true" version="1.0.0.0"/>

<feature id="blackberry.app.orientation">

<param name="mode" value="portrait"/>

<feature id="blackberry.app">

<param name="orientation" value="portrait"/>

</feature>

Please use plain text.
Developer
peardox
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: BB10 Gold SDK Orientation for config.xml?

Here's one of mine for Gold - works perfectly and forces landscape as per the setting below

 

Use it as a template and switch it to portrait for yours

 

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets"
        xmlns:rim="http://www.blackberry.com/ns/widgets"
        version="1.0.0.17" id="Vexed">
    <name>Vexed</name>
    <author>Peardox</author>
    <icon src="icon.png"/>
    <content src="index.html"/>
    <feature id="blackberry.app">
        <param name="orientation" value="landscape" />
    </feature>
</widget>

 




Click the like button if you find my posts useful!
Please use plain text.
Developer
madmaskd
Posts: 137
Registered: ‎07-24-2012
My Device: Blackberry Z10 LE, Q10 And PlayBook
My Carrier: Vodafone

Re: BB10 Gold SDK Orientation for config.xml?

in config.xml file

 

if u wish ur app to be Landscape mode then Keep only Landscape and Delete the Other tag or viceversa

Hit Like if you find my post Use Full Thank You...
Please use plain text.
Trusted Contributor
velumani
Posts: 107
Registered: ‎07-26-2012
My Device: Blackberry Z10
My Carrier: airtel

Re: BB10 Gold SDK Orientation for config.xml?

This works in the Gold SDK for me..

 

  <feature id="blackberry.app">
    <param name="orientation" value="landscape" />
  </feature>



Try my HTML5 app CountDown (free)


Click Accept as Solution if this post that have solved your issue(s)!
Like if you found this post useful..
Please use plain text.
Contributor
kamote_empire
Posts: 11
Registered: ‎09-28-2012
My Device: 9800 and Playbook
My Carrier: Sun Cellular

your reply

Thanks guys for your reply

orientation problem solved https://developer.blackberry.com/html5/documentation/param_element.html

Please use plain text.
Contributor
Solas_alok
Posts: 23
Registered: ‎12-27-2012
My Device: BB10
My Carrier: ghha

Re: BB10 Gold SDK Orientation for config.xml?

Not working in ripple .Plz help me out.
Please use plain text.