Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-12815

BlackBerry: Add orientation property to tiapp.



      Add a BlackBerry specific property to tiapp.xml which exposes a way
      to set the orientation setting in the generated application manifest.
      This is needed to lock the application into landscape or portrait.
      You can also enable "auto-orient" behavior which allows using
      Window.orientationModes to programmatically control what orientations
      are supported by your application.

      The property should live in a blackberry section. For example:


      Acceptance Test

      1. Create an application which opens a window.
      2. Add the snippet of code above into your tiapp.xml file.
      3. Run application. Verify the UI is only allowed in landscape orientation.
      4. Try changing "landscape" to "portrait" and build & run application again.
      5. Verify only portrait orientation is allowed.
      6. Try changing "portrait" to "auto". Build and run application.
      7. Verify all orientations (except upside portrait) is allowed.
      8. Remove the orientation tag in the blackberry tag. Build and run application.
      9. Verify only the device's default orientation is allowed (portrait for phones).




            • Assignee:
              joshroesslein Josh Roesslein
              joshroesslein Josh Roesslein
            • Watchers:
              3 Start watching this issue


              • Created:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration