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
Developer
Posts: 25
Registered: ‎04-04-2011
My Device: BlackBerry® PlayBook™
My Carrier: AT&T

Re: Reality Check on Playbook orientation

I think it would need to be:

 

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" 
	rim:header="RIM-Widget:rim/widget"
	version="1.0.3" 
	id="com.eleganttechnologies.quadratic"
	>
  <name>Quadratic</name>
  <description>Solve the quadratic equation on the PlayBook.</description>
  <author 
	rim:copyright="2011"
	email="support.bbpb.quadratic@eleganttechnologies.com"
	>Elegant Technologies, LLC</author>
  <rim:orientation mode="portrait"/>
  <rim:loadingScreen backgroundImage="background.png"
                     foregroundImage="cached_images/icon_1024x1024.png"
                     onLocalPageLoad="true">
        <rim:transitionEffect type="zoomIn"/>
  </rim:loadingScreen>

  <icon src="cached_images/icon_86x86.png"/>
  <content src="www/ProjQuadratic/playbookSkin/webapp.html"/>
	
  <Orientation mode="portrait"/>

</widget>

 

 

New Developer
Posts: 13
Registered: ‎10-19-2010
My Device: 9000
My Carrier: AT&T

Re: Reality Check on Playbook orientation

Well, that isn't working for me, which seems odd.  I'm starting to suspect something else is going on.  Maybe We're looking at the wrong documentation, or the example is is wrong.

 

So, I've broken it down to a Hello World app.

 

My index.html file:

 

<html>
<body>
	This Should be Portrait.
</body>
</html>

 

My config.xml file:

 

<?xml version="1.0" encoding="utf-8"?>
<widget xmlns=" http://www.w3.org/ns/widgets"
        xmlns:rim="http://www.blackberry.com/ns/widgets"
        version="2.0.0.0">

  <name>GoPortrait</name>

  <rim:orientation mode="portrait" />

  <content src="index.html"/>

</widget>

 

My source dir (just to show that there isn't any funny stuff going on):

 

Before Launching:

After Launching:

 

 

Any help would be appreciated!

Thanks,

JJ

 

Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Reality Check on Playbook orientation

This is an unfortunate defect that has been fixed in the Tablet OS used on live devices, but still exists in the simulator.

 

I have just updated comments in the following developer issue:

https://www.blackberry.com/jira/browse/TABLET-70

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
New Developer
Posts: 13
Registered: ‎10-19-2010
My Device: 9000
My Carrier: AT&T

Re: Reality Check on Playbook orientation

Thanks for the inside scoop.