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

BlackBerry : Orientation change does not work in sdk 3.1.1

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 3.1.1
    • Component/s: BlackBerry
    • Environment:

      Description

      This is a regression.It still works in our beta release sdk 3.2.0.v20130412191647

      Description:
      1. Create an app for BB with the following code

       
      var win = Ti.UI.createWindow({
      	backgroundColor: 'green'});
      	
      	win.orientationModes = [
      		Titanium.UI.PORTRAIT,
      		//Titanium.UI.UPSIDE_PORTRAIT,
      		Titanium.UI.LANDSCAPE_LEFT,
      		Titanium.UI.LANDSCAPE_RIGHT,
      		Titanium.UI.FACE_UP,
      		Titanium.UI.FACE_DOWN
      	]; 
      	
      var lbl = Ti.UI.createLabel({
      	text:'Orientation modes',
      	color:'white',
      	font:{fontSize:15}
      });
      	
      win.add(lbl);
      win.open();
      

      Also, add the following permissions in the tiapp.xml

      <blackberry>
              <orientation>auto</orientation>
              <permissions>
                  <permission>access_shared</permission>
                  <permission>record_audio</permission>
                  <permission>use_camera</permission>
                  <permission>access_internet</permission>
                  <permission>play_audio</permission>
                  <permission>post_notification</permission>          
                  <permission>set_audio_volume</permission>
                  <permission>read_device_identifying_information</permission>
              </permissions>
          </blackberry>
      

      2. Build & run for BB device

      Actual Result:
      1. The orientation does not change

      Expected Result:
      1. The orientation should change to the appropriate orientation as the device is rotated

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                penrique Pedro Enrique (Inactive)
                Reporter:
                lokeshchdhry Lokesh Choudhary (Inactive)
                Reviewer:
                Chris Barber
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-16491
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration