PlayBook screen orientation

There are several threads discussing this but no seems to give a satisfactory answer.

How to fix playbook using webworks (lock) screen in portrait or landscape orientation.

I already tried the following:

(1) pasted below the code in my config.xml file (does not work)

fake

landscape

(2) created *-app.xml file code pasted above in respect of the initial window but the app didn't compile.

(3) Finally, I modified the file blackberry - tablet.xml, but still I was able to get the portrait when I slide to the right corner to the center of the screen.

How correct us screen in portrait or landscape orientation using webworks for playbook?

We have not currently official support to lock your orientation on Beta 3... We have it coming in a future release of the SDK WebWorks PlayBook

I'm not personally aware of any workaround for the moment...

Here's a thread where I described what is on the right track...

http://supportforums.BlackBerry.com/T5/Web-development/locking-orientation-with-the-PlayBook-WebWork...

Tags: BlackBerry Developers

Similar Questions

  • To adapt to the screen orientation by using javascript (for playbook)

    Hi all

    I know that the subject of the screen orientation has been crossed many times already, but I've searched and searched in the webworks put on an answer and can't find it.

    My application is made for the landscape. I have 2 options. ((1) lock app in landscape which I think still can be done using webworks (but please correct me if I'm worng) or 2) to scale the app for the portrait.

    Because to my knowledge 1) cannot be done, I'll focus on 2). Has anyone seen or written a javascript/css script that checks if the user holds the tablet in landscape or portrait and adapt to the 2 on-the-fly switching of b/w? My app is made for 1024 x 600. I know it can evolve using CSS 0.6 starting to adapt to the screen, but I don't know how to check and then re - evolve afterwards with javascript.

    Any help, please and thank you.

    In fact, you can lock in landscape orientation with

    your config.Xml file. Just remove the space after "rim:" because I added it to prevent the Bulletin Board to return as , haha.

  • 21.5 inches a month old iMac had a pink line down the screen-oriented...

    21.5 inches a month old iMac had a pink line down the screen-oriented...

    Return it to the store for assessment.   It is in the warranty period of 12 months, so it could be replaced if you insist that you are in the United Kingdom.   Otherwise it is covered by your warranty and is either replaced or repaired according to the countries.

  • My screen orientation is implemented alone

    This is all portrait view and I can't understand how files to see landscape. Help!

    Hello

    Try this link:
  • Desktop screen orientation

    How can I change my screen orientation? This isn't for printing, simply look at one. Press the wrong button and now have to turn on the computer side to read.

    Wednesday, August 11, 2010, 23:49:38 + 0000, mtngardenlady wrote:

    How can I change my screen orientation? This isn't for printing, simply look at one. Press the wrong button and now have to turn on the computer side to read.

    The ability to rotate the screen image is a feature of your video card, to help work with instructors who rotate the portrait orientation. Almost certainly you accidentally pressed Ctrl-Alt, and
    an arrow key.
    Rotate using these keys.

    Ken Blake

  • The lock screen orientation

    How to lock the screen orientation in application of 10 Blackberry webworks? I want my app to always remain in fashion portrait.

    See the element of config.xml param/guidance here:
    https://developer.BlackBerry.com/HTML5/documentation/param_element.html

  • Image of the scale when screen orientation change

    I'm putting an image when screen orientation change, I put the logic based on sublayout. However, it is called no effect. It works fine the first time. Then, when I incline simulator, not touch.

    BitmapField private;

    protected void sublayout (int maxWidth, maxHeight int ) {}

    Super.sublayout (maxWidth, maxHeight);

     

                 if (width == Display.getWidth ())

    {

                    return;

    }

    on the other

    {

    width = Display.getWidth ();

    ctrHeadImg = ctrHeadImg.scaleImage32 (scaleXFixed32, scaleYFixed32);

    a = new BitmapField();

    a.setBitmap (ctrHeadImg.getBitmap ());

    loaded;

    layoutChild (, a.getBitmapWidth (), a.getBitmapHeight ());

    setPositionChild (, bitmap1.getLeft () + bitmap1.getBitmapWidth (), 0);

    ...................................

    setExtent (w, h);

    Can you elaborate on what you see?  What does not work?  Is called the scaleImage32 method?  The field is not be added to the screen or is the image not adjusted as desired?  What values are the scale by?

    I recommend having a look at this post.

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=41782&query.ID=18...

  • Question of screen Orientation

    I can't understand how to change how the screen orientation changes when I move my x 201 laptop mode to Tablet mode. As it is, when I close it for a Tablet, the screen becomes portrait, however I would like to change to make it reverse landscape (i.e. the computer mode unlike portable 180 degrees).

    I studied the topic online and I can't find answers, does anyone know how to do this?

    -chris

    There are 2 methods to configure (assumes that you are using Windows 7):

    1. Go to control panel > Lenovo Tablet utility > Auto Screen Rotation.
      (be sure to this Menu Popup Tablet is installed, http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-67219 )
    2. Go to control panel > Tablet PC settings > display (tab) > click on 'Go to Orientation', then you can see "Orientation sequence settings" there.
  • Script to change the element using screen orientation does not not on Dev Alpha in Portrait mode

    OK, so I wanted to update my application WebWorks Testing (https://github.com/SCrid2000/WebWorks-Testing) to make it easier to test webworks apps for the difference in screen resolution between the Alpha of Dev and the 10 next of BlackBerry.

    Basically, instead of opening your html, js and css files directly in the test application, the update would be to open your files in an iframe in the app. The iframe will resize itself based on the orientation of the device.

    The javascript function looks like this:

    function displayCurrentOrientation() {
    
        if (window.orientation === 0) {
            document.getElementById("currentOrientation").width = '1280px';
            document.getElementById("currentOrientation").height = '720px';
            return false;
        }
        if (window.orientation === 90) {
            document.getElementById("currentOrientation").width = '720px';
            document.getElementById("currentOrientation").height = '1280px';
            return false;
        }
        if (window.orientation === 180) {
            document.getElementById("currentOrientation").width = '1280px';
            document.getElementById("currentOrientation").height = '720px';
            return false;
        }
        if (window.orientation === -90) {
            document.getElementById("currentOrientation").width = '720px';
            document.getElementById("currentOrientation").height = '1280px';
            return false;
        }
    }
    

    Now it works just perfect on the PlayBook (but of course, this isn't much help for the screening of the BB10)

    However, on the Dev Alpha it ONLY works in the LANDSCAPE; in other words, if the application is launched in the landscape, the iframe rezises and everything is just perfect. If the test application is started in portrait mode, the iframe is still resized to the size of portrait.

    Anyone have any suggestions for what I'm doing wrong? I am quite at a loss here (and since this is a free application and open source, I'm not too motivated to spend another couple hours trying to fix lol).

    Thank you.

    Shane

    Nevermind, turns out it only is not yet supported by BB10.

  • iPad, screen Orientation change without moving the iPad? An application perhaps? Is this possible?

    I would like to have the ability to change the orientation of the screen without physically rotate the iPad vertically.

    Here's what I mean.

    I have the iPad on the desktop and I want to check the email in landscape mode, I move on the table horizontally to landscape mode and orientation should change. It is not for the moment. I have to raise the iPad on the table and to change the direction from Portrait to landscape and when I go back to an application demanding in portrait mode, I have to again raise the iPad on the table.

    I was wondering if there is a utility app that allows the switch without raising the iPad and turning to change direction.

    Hello amitkapila2,

    Yes a few apps will change your orientation when you start them. Try roating your iPad in landscape ounces landscape enable locking focus on the home screen (in the last control center) and then launch the application of it rotates so it's the app.

  • Portege M700 will not change the screen orientation

    I installed the driver for the webcam for the M700, and every time I install it, I get the same error message:

    "Open Webcam driver fail - please restart camera or computer."

    I reinstalled the drivers of many times, and it still does not work.

    Therefore, I tried the msconfig method, disabled all the startup process and then reactivated their.

    The webcam shows the same error message, and now the screen will not change orientation when I rotate the screen.

    You try to use Windows XP Home edition or what? Generally, each laptop comes with preinstalled and configured operating system.

  • HP tm2 - 1079cl screen orientation button does not function 8 windows

    I have a laptop Hp TM2 - 1079CL.

    The button of the direction of rotation/change screen located on the right edge of the screen, under the fingerprint reader does not.  Can I use the driver windows 7?  Assuming I understand that you control the button.

    Fresh installation of 64-bit Windows 8.

    Already running Windows 8 consumer Preview Edition upgrade to Windows 7.  No problem with the orientation of the screen. During insatall to win 8, there was no offer to save files or upgrade the operating system.

    I think there may be subtle between the Tx2 and Tm2 differences since I only have one button on the side of the RT. of the displayfor screen rotation.  I found the (32-bit) quick launch buttons, running in task mgr but nowhere does elsewhere that it is running.  The mobility Center rotates the screen.  It provides only 2 choices landscape and landscape upside down.  The button would do the two portrait. (sequence through each mode when the button is pressed.)  I can use the option of mobility as a workaround if necessary.

  • Can you help me change my rear monitor screen orientation?

    While the resolution of a problem with my wireless keyboard, I somehow changed my monitor in portrait and landscape orientation can not figure out how to reverse the process. Meanwhile use the monitor on its side, which shows only half a screen at the same time as it is a widescreen 17 inch flat TFT LCD.

    Try holding your ctrl + alt + up arrow at the same time or right click on your desktop, Graphics Options, Rotation, your monitor, Normal.

  • My screen orientation was changed, how can I go back to the normal orientation?

    I think that a single program has changed the direction of my monitor, how can I go back to the normal orientation?

    The following article might be worth a visit:

    How literally rotate your computer screen
    http://www.WikiHow.com/literally-rotate-your-computer-screen

  • screen orientation has changed

    My computer screen has changed from portrait to landscape orientation and my mouse changed paths too. If I want to go upward or down I have to move the mouse from left to right. My 2 year old nephew pressed a few buttons, and I don't know that it supports.

    Try to press Ctrl + Alt + up ARROW, or try Ctrl + Alt + and a different key to the arrow.

    If this does not work: right click on the empty desk > graphics > Rotation.

    See you soon.

    Mick Murphy - Microsoft partner

Maybe you are looking for