Landscape force on Dev Alpha

I loaded my BAR app that was created using SDK 2.0 on device Dev Alpha and it works in portrait mode, while it should be fixed in landscape mode. The PlayBook, it starts up and rest landscape on Alpha, it goes to the portrait. Clues, what has changed?

In your app.xml file:

landscape

Tags: BlackBerry Developers

Similar Questions

  • Orientation landscape BB10 Dev Alpha

    Hey there,

    I'm looking to have a landscape for playbook and BB10DA (BB10 Dev Alpha) application. The playbook, it will default to the landscape and all is peachy. However when I run the same application on BB10DA the phone is locked to a portrait orientation making the app behave strangely. The keyboard is the portrait and the gestures of the bezel also. I have my rendering and input adjustable thanks to Cocos2d-x, but the OS needs to recognize that I want the phone to be landscape only for this application.

    Is it possible to do currently?

    -Xoorath

    In your file of bar - descriptor.xml, you can add the following inside the element

    landscape
    

    Which I think should work.

  • 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.

  • Video HTML5 don't play online on Dev Alpha after update to 10.9.9.339

    Dev Alpha used to play HTML5 videos inline (similar to the PlayBook), which has helped some cool design if you were paying attention.

    After the update to 10.9.9.339 videos are no longer play online (the device trying to play their full-screen and displays the video controls even if it has not been specified according to the HTML5 specification), and the layout is broken.

    I wasn't able to find a way to force videos to play online as before, nobody knows how to do this on a device BB10?

    Here is a simple example of HTML code:


      

    Grateful for your help!

    Check out this thread:

    http://supportforums.BlackBerry.com/T5/Web-and-WebWorks-development/HTML5-video-issue/m-p/2085959/hi...

  • Change orientation distorts the content of the screen on Dev Alpha (10.0.6.545)

    I use the Beta 2 SDK and my Alpha Dev is updated to 10.0.6.545.

    I want my application to support the changes in orientation from portrait to landscape and back. To implement, I followed the tutorial at:

    https://developer.BlackBerry.com/Cascades/documentation/dev/orientation/index.html

    When I flip the Alpha of Dev to change the orientation of the fashion portrait to landscape mode, it works. But when I flip it back to leave for the portrait, the content of my app's screen gets distorted / destroyed somehow so that more or less garbage appears. It is not just a question that all of my components are not moved or something (I understand I must handle this) but the screen content is garbled. When I go again in landscape mode it seems ok again. But when I go to the portrait of the screen is still once deformed. Here is a screenshot:

    I've found that I can reproduce this behavior also with examples of applications like weatherguesser and also with costs projects created from the project templates as examples NavigationPane or TabbedPane when I just turn on self-orientation in their bar - descriptor.xml file and just add an onCreationCompleted handler in their main.qml:

    onCreationCompleted: {
        OrientationSupport.supportedDisplayOrientation = SupportedDisplayOrientation.All;
    }
    

    Since the orientation change works very well for the operating system itself and the browser pre-installed too, and only my apps are affected, I think that I'm doing something wrong. Any tips?

    Is the source code for the tutorial above available as an archive available for download somewhere? I want to check it out.

    Or is it is a known issue in Beta 2? (I did not implement the change in orientation of support before Beta 2).

    (I have not found anything on this issue in the issue tracker.)

    Thanks in advance

    I've updated to Beta 3 SDK and the Dev Alpha 10.0.9.388 and this bug seems to be fixed.

  • Blocked dev Alpha B PIN device

    My Dev Alpha B has been blocked recently. I already wrote several times to:

    [email protected]

    [email protected]

    [email protected]

    [email protected]

    Especially I have not yet received response. [email protected] guys have even asked to confirm if the device is still blocked but then he stopped also reply on my email. Can someone help from Blackberry, please?

    [email protected] finally unlocked it

  • Impossible to test in app dev alpha A

    Hello

    I need to test in-app on my alpha dev A. I purchase followed all of the steps for testing in sandbox mode. But when I try to add the release that it does not show the option for alpha dev and so I get the "Not available for this device" message when trying to download app on app World sandbox mode.

    I need to test in-app. How can I do?

    I've just loaded Alpha-A Dev with the last external beta, 10.0.10.263 and was able to find and install downloaded applications only for Z10 models that dev Alpha was not as a device supported successfully.

    After making the changes on the supplier portal, it may take up to 6 hours for those on the device because of caching.

  • installation bar on Dev Alpha: 810/var/tmp/bar_665560 failure: cannot access the Member "META-INF/MANIFEST. MF'

    Can someone tell me what in the world does that mean? Get this error when trying to install my application signed my BB10 Dev Alpha device. This error is new to me.

    I troubleshoot-made with Marco a little offline time. Here were the issues being not package and deploy properly, I hope this will help others as well in the future.

    The problem was just a few things.

    Config.Xml

    -Lack of ownership application in the widget element ID

    http://www.w3.org/ns/widgets"
          xmlns:rim="http://www.blackberry.com/ns/widgets"
            version="2.0.0.0" id="your_app_id_goes_here">
    

    Index.html

    -Lack a script include.  I always use the Web Inspector Network tab to make sure all my includes load.  It's amazing to see how many times I did it personally

    -Lack of script include the WebWorks JavaScript BB10.  Don't forget with BB10, we include this

    -Missing "webworksready" event listener.  In the case of Marco, that didn't alter his app, but we must wait for this event before calling WebWorks API now.

    Practical links

    Example of file config.xml blackBerry 10

    https://developer.BlackBerry.com/HTML5/documentation/code_sample_creating_a_bb_widget_config_documen...

    Examples of 10 blackBerry applications

    https://github.com/BlackBerry/BB10-WebWorks-samples

  • Dev Alpha Red LED flashing (10111011) after update 10.0.6.545

    I upgraded my Dev Alpha 10.0.6.545 today and after the update has been done the WiFi is connected but when I tried to browse it wasn't working, so I decided to restart the device to see if, after this, it would work. When I tried to turn on the red light started flashing on the next in the sequence 10111011. I tried to repair the unit by using the Software Desktop 2.4.0 (version 16), which is the same one I used to update the Dev Alpha.

    He began to download the firmware to fix the device, but when it finished and started to install it collapsed it and wasn't moving forward for ~ 1, then I removed the unit and tried again (3 times) and it's the same thing.

    Any ideas?

    Seriously guys, 10 is my new lucky number. On the 10th try to repair it it fixed within 10 minutes.

    You must be persistent for Dev Alpha updated to work as much as I've seen it here by searching on the forums... haha

  • BlackBerry Q10 Dev Alpha C - stuck on "essential gestures."

    Hey guys,.

    I accidentally placed an emergency call after loading the last 10.3 OS on my Dev Alpha C through the tutorial from gesturest. He asks me to swipe down from the top where the only option is 'emergency call '. I don't see a way to pass the tutorial of gestures to extinguish the GMS. Can someone help me out here?

    Okay, it looks like I had to do a battery pull and then just keep tapping the button 'try '. Finally he moved me to a screen where I could slip into an application and tutorial actions. Huge PITA, but I hope I am the case of edge here.

    Rion

  • BB 10 Dev Alpha Simulator 10.1 beta - screen resolution

    I couldn't get my Android app BAR file to install on the current version of the BB 10 Dev Alpha Simulator (10.0.10.261) so I tried to install the Beta 10.1 Simulator and my app installed first and short big.  The only problem is the screen seems to be much smaller than the 10.0.10.261 version, I read in the release notes that the resolution is only 720 x 720.  Is it possible to change this?  Or can we expect a resolution screen than the final version?

    Thank you

    Jonathan

    I realize now it's the resolution for the upcoming phones of the physical keyboard BB10 (X 10).

  • .swf continues to play (Dev Alpha)

    Hey guys,.

    I am a web developer and this is my first Blackberry + AIR experiment.

    I used to implement the .swf into an html file and compile it by webworks, but I discovered that there is another way using the AIR SDK.

    So, I followed the guides online, downloaded the SDK and created 2 .xml files.

    Then I put my .swf in the folder of my project as well.

    Then, I used the GraphicalAid to generate the .bar file.

    During installation I got ' the result::failure 881 application author does not debug author token "which is not the case. However I just sign and then test it in my Dev Alpha camera.

    Here is the new issue:

    The .swf appears as it should, but he continues to play and repeat so as there is no stop() in my actionscript.

    This does not happen in Chrome and it is not yet using the WebWorks method and the older generation of Blackberry 10.

    Maybe there is something wrong with my xml? Here are the parts of my project.xml:

    1. Game.swf
    2. GPU
    3. fake
    4. true
    5. true
    6. fake
    7. fake
    8. fake
    9. standard
    10. fake

    Help me please guys, I don't know what to do.

    Best regards

    Flo

    Yes, it works only for AS3. I'll look into if this is the expected behavior.

  • Remove the SIM Tray Dev Alpha A

    Hello

    I bought a SIM card to check the data on my Dev Alpha A. I'm trying to remove the tray now. I have lost the small tool somewhere. How to remove the SIM tray?

    Figured it out. Just use a paperclip.

  • BlackBerry 10 Dev Alpha is not updated to 10.1 to 10.2

    I'm trying to update my device BlackBerry 10 Dev Alpha OS 10.1 to 10.2. I'm refernce documentation for it. I downloaded Autoload-DevAlphaC - 10.2.0.1157.exe try to update. But the command line stops without updating. Then I tried with loading auto-DevAlphaA_B - 10.2.0.1157.exe. Here he updates without any error in the command line. But the device does not start after that.

    Then, I go down to the previous version of the OS using the load auto-DevAlphaA_B - 10.1.0.1485.exe. Now the unit start with OS 10.1

    Why is this happening?

    I don't think that Dev Alpha (A) could be upgraded to version 10.2. I have tried both official and leaked OS but neither can start the device again. So currently my Dev Alpha holds only still 10.1.1485.

    If you really want to try 10.2, try using Dev Alpha B/C or official Z10/Q10.

  • After wiping Dev Alpha, it gets stuck

    I recently installed the updated BB10 with the hub. I found that something was wrong with the update that I couldn't connect to BBID little matter what I tried. So, I did a cleanup of security of the device.

    Now when it restarts, it shows a litte with a USB phone to a computer. When I plug it into the USB or the phone or the computer acts as something that happened.

    If I don't touch it, the dev alpha turns off, then when I turn it on again, same thing the usb screen. I need to finish a few apps and test them, I don't know what to do. Can someone help me?

    The automatic charger for Windows and connect the device to the computer windows using a US cable. Run the automatic charger. It starts by itself. If this isn't the case, keep the button of the unit alpha dev for at least 15 seconds.
    The autoloader should now be able to connect to the romantic boot and start updating your device and wipe all content.

Maybe you are looking for