Layout Orientation problem storm

I use setAcceptableDirections (...) to force portrait mode.

The problem I have is that I use the 'onUiEngineAttached' callback to calculate the screen depending on the size of the screen layout.

The problem is that if the device is in landscape mode before the application is started, it returns to the old screen size (landscape), although as soon as something is rendered past in Portrait mode.

How can I make sure that I get the size of the screen post-reorientation (forced to setAcceptableDirections) to adjust the layout before the screen is painted?

Found a simple work around for that... to Portrait mode height > width, so if they are upside trade them just before using.

Tags: BlackBerry Developers

Similar Questions

  • 9900 screen orientation problem

    Hello. I had a problem on problem of orientation.  Only 9900 real device got this problem (the other deivce is ok as Simulator 9810 and 9900 also ok.).

    I put the direction of the screen like this: Ui.getUiEngineInstance () .setAcceptableDirections (Display.DIRECTION_PORTRAIT);

    But management screen show always reason to 9900.

    Did someone also get this problem?

    Pls share the solution. Thank you very much.

    This is perhaps because previous models could not rotate the screen -?  Only touch screen models.

    All other models are either a touchscreen where North is the same as the Portrait is a non touchscreen where the display is always North either portrait or landscape.

    So just check AccelerometerSensor.isSupported (), and if that returns false, you know it will always be in the North either portrait or landscape.

    If what you're trying to do is to make the display always be oriented as when the phone is held normally, then set the acceptable to the north direction, and it should behave the same on everything... except that the Storm, the display does not obey a command to move a certain way, it will remain however is that the app was started , but then lock in the North, if the user does rotate this portrait.

  • Responsive HTML5 Layouts customization problems

    I'm trying to customize a layout receptive HTML5 based on Theme1_Standard. Once I save it, I can't no longer re - open using the button customize the selected layout. I get an error: "the fichier...\MasterThemeSchema.xml has invalid data. It happened several times (with several attempts to customize a new layout). It also happens with the Theme2_Government layout. I worked initially with an imported project, but have created since a new aid project, and again, I get the same error. Any suggestions?

    After a long chat online with Support from Adobe, I could solve this problem. I was working with my project files on a network. It is recommended that you work with files of project HR 11 locally if you can.

  • Print orientation problems cs5

    I have a layout in cs5 like a3 landscape, but no matter what I always do prints in a view rotated on a3 paper and twist the image, then it is cut. I tried everything... through every option in the print dialog box in cs4 and cs5 and compared and everything is the same. At this point, I'll have to make a PDF file and print with that so it's a little time intensive... any ideas out there?

    What OS? What printer?

    This sounds like you have the setting in the substitution of the print dialog box print driver, or perhaps you need to define the page size/orientation in the driver and then the dialog ID defined by the driver. You are using the latest driver for the printer?

  • orientation BlackBerry storm

    Hello

    is there a api / listener to follow the orientation of the device? who can inform us when device gets a rotation mode landscape to portrait mode, or vice versa.

    Perfect!

    Please mark the thread as solved.

  • Layout, scaling problem (Dreamweaver CS5)

    Hello

    Thanks in advance for any answers.

    So, I did a few tutorials and start getting the hang of Dreamweaver. My problem is that my divs are implemented nationally in different browsers/resolutions using a percentage value, with the exception of my head. For some reason, he is a graduate in pixels, so every time I use different browsers or zoom when testing my site, my title gets stretched on the page and misaligned. I already placed an image there as a source and cannot find a way to prevent this misalignment. Should I remove the div tag and reinserting everything?

    I use a MacBook Pro with OS X Snow Leopard 10.6.4 and CS5. I use the template HTML 3 liquid column with header and footer.

    Thank you

    Ryan

    Why not set up a style in the CSS style sheet to set the width of the image to 100% of the width of its container? Instead of using pixels, it's...

    As long as you place the image in a div with a class or an id, use it in your style:

    . Header img {width: 100%;}

    height: auto;

    }

    This image is placed in a

    Beth

  • Smartphone blackBerry Storm problems international roaming

    Yet another problem Storm for me. I am currently in Hong Kong and the global data feature does not work. When switch mode GSM, he says constantly only SOS calls. I tried to manually choose a network... for example, SmarTone Vodafone but it constantly just says SOS calls. What the hell is going on? It worked for about 15 minutes and then to SOS calls only. If it's really a global phone, it offers you a world of problems and grief. When 1XEV or overall I can make and receive calls, but I worry about this. I need data and Verizon has only agreements with HK companies on GSM networks. I tried to restart and everything I can think of, but nothing helped. I talked to a Verizon representative who says that someone will call back me. Someone at - it ideas?

    Home screen > options > advanced options > host routing table > menu > register now

  • XCode 8 - How to fix an Auto resize problem on XCode version 8.0?

    I used XCode version 7.2.1 for my project. But I updated version 8.0 of XCode now. The scrolling display is inconsistent in my project view controllers. Here I used resizing only not an automatic layout. I have mentioned the many forums. But can not able to find a solution for this. Here, I have attached similar links that I had tried.

    Question 8 of Xcode GM seeds Storyboard layout

    Problems after upgrade to Xcode 8

    I've updated the framework of everything in the table of Storyboard each time I start Xcode

    What is the exact solution for resizing problem scrolling display in XCode version 8.0. Help me please if anyone knows who...

    Thanks in advance.

    See my answer on StackOverflow.

    75 39594475 http://StackOverflow.com/questions/39526156/autoresizing-issue-in-Xcode-8/395944 #.

  • iOS data 9.3 orientation photos

    I found a problem when transferring grouped to Wordpress 4.5.2 photos taken with an iPhone 6 Plus. Each picture taken upwards to 2 April 2016 loads with the correct orientation. But since that time (and I think it's when I've upgraded to iOS 9.3) are frequent but incompatible orientation problems. These have persisted with iOS 9.3.1 and 9.3.2 (my current version).

    All images displayed in a correct on the iPhone itself orientation and Windows 10. But many are rotated about 180 degrees, 90 degrees, when transferred to Wordpress.

    My guess is that there could be a problem with the EXIF that are parsed correctly by other platforms, but not Wordpress. It would be boring fight whose work it takes to fix it, but I was wondering if anyone else has noticed such change since iOS 9.3. Given that everything worked fine before (and I was looking at hundreds of photos here), it would be too difficult for Apple to recognize what might be changed to stop what is happening?

    I do not use Wordpress, but FWIW I have not noticed problems during the orientation of the photo with my devices iOS (on 9.3.2) or web services that I use. Don't not to discuss, but it may be useful to ask Wordpress on this subject as well and see what they advise. Just another data point...

  • DV3610ea - black screen on startup, tell him an inverter problem?

    Am in a blind panic!  Purchased laptop from the United Kingdom in April, and now the problem with black screen, so am unable to do that either - I think that his work in the background and sometimes were able to open a session after hearing the correct noises and by using the fingerprint reader, I can say mobile is functional, but just can not see anything.  Unfortunately, even if his underr warranty I am not in England and I can not contact HP by their number of technique as cannot call 0844 numbers overseas - how stupid!

    We said its probably a problem with the inverter, but this particular model, the Council is therefore integrated on-screen is not a simple task as the screen must be replaced right now.

    Is there anyone out there who can advise on the symptoms and the problem could be that I'm really not count on the advice of people here where I am!

    Morning all the

    Just to let you know that, for now, my laptop has been corrected.  The documents that I had to sign said that 2 raw LCD panels have been used (I guess we were defective maybe?) but the layout of problem with the TFT (Thin Film Transistor) cable itself, and it has been replaced twice also.

    So for now, this problem has been fixed, but the technician told me that it was a common problem with HP Pavilion laptops, so am just glad it happened while it is still under warranty then have not to pay for anything whatsoever.

    I also read an extra brochure supplied with the machine, which States that "display TFT manufacturing is a very precise technology BUT imperfect, which means that the screens are not perfectionist cosmeticaly."  The imperfect in many ways I would say unfortunately.

    So anyone else facing this problem might have the same solution.  Hope this helps someone who has problems with their screen.

  • How to change direction to leftToRight topToBottom presentation, if the screen orientation changes from portrait mode to landscape

    Hi, I want to change direction in container of topToBottom to leftToRight so change your screen from portrait to landscape orientation.

    How to do this?

    I'm already using this

    on QML

    attachedObjects:]
    {OrientationHandler}
    onOrientationAboutToChange: {}
    If (direction == UIOrientation.Landscape) {}
    myContainer.layout =... / / to leftToRight
    } else {}
    myContainer.layout =... / / to topToBottom
    }
    }
    }
    ]

    I do not know how to set the new value

    Thank you

    Hello

    Use this code below:

    attachedObjects:]
    {OrientationHandler}
    onOrientationAboutToChange: {}
    If (direction == UIOrientation.Landscape) {}
             myContainer.layout.orientation = LayoutOrientation.LeftToRight / / landscape
    } else {}
             myContainer.layout.orientation = LayoutOrientation.TopToBottom / / portrait
    }
    }
    }
    ]

    Thank you

  • How to change the layout of the listview in javascript?

    I need show listview two different data schemas.

    can I change the listview.layout of js?

    my code is like this:

    {Page 1

    function aaa (type) {}

    if(type=="List")

    listschema = StackListLayout (); new StackListLayout();

    on the other

    listschema = new GridListLayout();

    listschema.cellAspectRatio = 3 / 4;

    listschema.horizontalCellSpacing = 5;
    listschema.verticalCellSpacing = 5;
    listschema.columnCount = 2;

    }

    {page 2

    property alias listschema lista.layout

    ....

    ListView {...}

    ....

    }

    Thank you...

    Hello

    You can set the layout for the listview dynamically from javascript by doing like this.

    Page {
        Container {
            ListView {
                id: listview
                dataModel: GroupDataModel {
                    grouping: ItemGrouping.None
                }
                /*layout: StackListLayout {
                    orientation: LayoutOrientation.LeftToRight
                }*/
                listItemComponents: [
                    ListItemComponent {
                        type: "item"
                        Container {
                            id: cont
                            preferredWidth: 500
                            preferredHeight: 100
                            background: Color.Gray
                            Label {
                                text: ListItemData.title
                            }
                            Label {
                                text: ListItemData.description
                            }
                        }
                    }
                ]
                onTriggered: {
                    console.debug("listview triggered");
                }
                onCreationCompleted: {
    
                    listview.layout = layout
                }
            }
    
        }
        attachedObjects: [
            /*StackListLayout {
                id:layout
                orientation: LayoutOrientation.LeftToRight
            }*/
            GridListLayout {
                id: layout
                columnCount: 2
            }
        ]
    }
    

    Kind regards

    Naresh Kodumuri.

  • Inability of Smartphones BB Storm blackBerry backup with Desktop software

    My wife and I have our own BB Storm, with separate Windows Vista Ultimate Edition connections.  She managed to save its storm with the BB Desktop Software under a windows login, but I can't back up my phone with the BB Desktop software on a windows login.

    I get an error message during backup of the process taking place:

    When the backup process reached "browser data cache" and underneath of bed "backup data", an error box appears "error reading backup databases".

    I had several problems with our phones - many times I pulled the battery for 2 minutes on each phone to perform a soft reset. I wiped his hand several times on both phones.  I uninstalled and reinstalled the BB Desktop Software repeatedly.  I've talked with BB technical support, has been climbed at their same level 2 technical support so that they could not solve the problems of the previous.  Fortunately I was able to solve most of the problems storm on mine, but I could use some help with this one.

    Thank you.

    Hi and welcome to the forums,

    You clear the browser cache by starting the browser, selecting options, and clear the browser cache every

    Category:

    Do a battery pull:

    No data will be lost when you do the following: remove the battery while the device is activated. Remplacer replace after one minute, let the device reboot 1-3 min, then hang the BB to the USB port and see if the problem is corrected.
    Thank you

    Bifocals

  • Captivate 9 Responsive layout - Maximum "impose a height."

    Hello

    We create a sensitive design course. for the mobile display layout; the problem we face in the work area.

    We put the height slide to 3000px, however the displayed work area where we can really use maximum of 1900px layout.

    Let us know the maximum work area for suitable mobile networks.

    Please find attached the screenshot for the height of blade with screen area settings is displayed.

    Captivate09_Ref.png

    Thank you

    Cécile Saka

    I understand your point of view, but you can forget that Adobe now has several products for all the creation of content for HTML5 and mobile devices.  Most of these other products create scrolling pages (Adobe Dreamweaver, Muse, etc.).

    So I don't think you'll find Adobe all that lend themselves to the idea of reviewing Captivate to work this way when he was already a niche sold, implemented with the presentation of content using a methodology based on the slide.

    However, in fact I do not work for Adobe (or at least, they do not pay me to respond to these messages) then you can turn out to be right and we'll see the scrolling of HTML5 slides in Captivate 10.  Who knows?

  • Playback software Adobe DPS SDK: how is currently displaying the page orientation?

    Hi all

    I tried to extract information from page/article using the SDK to read Adobe DPS.

    There is a tutorial (new APIs and features r30, including folio, metadata section and events calendar navigation |) Developer of Adobe Connect...) that i have widely reused but nothing about the last thing in the puzzle that I need to extract.

    I need to extract the layout / orientation when displayed on a device.

    adobeDPS.folioDataService retrieve the metadata of the article only, and these methods don't contain any reference to orientation or layout.

    Interestingly enough, I was able to locate an object "ApplicationState" which produced the ConfigurationService. ( Adobe DPS - reading SDK 2.30: adobeDPS-ConfigurationService: JsDoc reference)

    I have not try it the "orientation" field description is not exactly what I want: "supports this point of view the guidelines."

    I need of the: focus which I am currently viewing this page.

    Any thoughts? Should I use a different SDK?

    Your help is very appreciated.

    Concerning

    You can use the attribute native javascript "window.orientation."
    Something like this should work:

    function currentOrientation() {}

    {Switch (Math.ABS (Window.orientation))}

    decision 90:

    Alert ('landscape');

    break;

    by default:

    Alert ('portrait');

    break;

    }

    }

    window.addEventListener ('orientationchange', function() {currentOrientation()});

    He calls it first if necessary

    currentOrientation();

Maybe you are looking for

  • Address bar search does not correctly

    This road after FF4 update. Example- "Yahoo email" by typing in the address bar got right email in the yahoo page. Now, after update, type 'yahoo email' in the address bar search in a regular google results, and I have to click on the link yahoo emai

  • keep the photos in the library

    Whenever I have to rotate the pictures in the library, they disappear.  I can view only on the stage.  How to keep them from disappearing?

  • Camera, lens and strap.

    Hello guys! In your experience, what is the heaviest lens, you can get on Canon 5diii and safely with the strap attached to the camera? I know that a lot of people do with 70-200 f2.8 ii (~ 3 lbs) or 85 1.2ii (~ 2 pounds), but what about heavier lens

  • can't send email on outlook express. Incoming is OK.

    0x800ccc6d error code. Have tried with any message or an attachment. My COX homepage and email is fine. Messaging by default for Outlook ok, but can not send.

  • Missing desktop games

    I don't know why my office games are missing... solitaire, free cell, flip, etc.. Is there anyway to get back them? Please make it as simple as possible, I'm not a computer expert.