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
New Contributor
Posts: 2
Registered: ‎06-19-2013
My Device: Playbook and waiting for my Z10
Accepted Solution

How to fix rotation in application like make application just open in land scrap mode only in Html5

Dear Team,

 

I am developing app using HTML5 for Z10.

How to fix rotation in application like make application just open in land scrap mode only in Html5

 

Please help me and provide me link to documentation for this.

 

Regards,

HP

BlackBerry Development Advisor
Posts: 762
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: How to fix rotation in application like make application just open in land scrap mode only in Html5

Hello,

 

You can set the following in your config.xml

 

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

 

There's more information available on our developer site -https://developer.blackberry.com/html5/documentation/code_sample_creating_a_bb_widget_config_documen...

New Developer
Posts: 36
Registered: ‎09-12-2012
My Device: blackberry dev alpha
My Carrier: airtel

Re: How to fix rotation in application like make application just open in land scrap mode only in Html5

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