Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13874] BlackBerry : Orientation change does not work in sdk 3.1.1

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2014-05-28T22:36:42.000+0000
Affected Version/sRelease 3.1.1
Fix Version/s2013 Sprint 11 BB, 2013 Sprint 11, Release 3.1.1, Release 3.2.0
ComponentsBlackBerry
Labelsqe-3.3.0, qe-testadded, sdk-bb
ReporterLokesh Choudhary
AssigneePedro Enrique
Created2013-05-15T21:33:05.000+0000
Updated2014-05-28T22:37:15.000+0000

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

FileDateSize
orientation_change.zip2013-05-20T23:17:55.000+00003829963

Comments

  1. Lokesh Choudhary 2013-05-20

    project attached.
  2. Lokesh Choudhary 2013-05-21

    Josh as you pointed out the auto orient in the bar xml file stays false for me.
       <initialWindow>
               <autoOrients>false</autoOrients>
               <aspectRatio></aspectRatio>
               <systemChrome>none</systemChrome>
               <transparent>false</transparent>
       </initialWindow>
       
  3. Josh Roesslein 2013-05-22

    If Chris can review the code change and someone setup for BlackBerry can perform the functional testing.
  4. Chris Barber 2013-05-22

    3_1_X pull request: https://github.com/appcelerator/titanium_mobile/pull/4314
  5. Lokesh Choudhary 2013-05-22

    Verified the fix & the orientation is working as expected. Thus closing the issue. Environment: Ti Studio : 3.1.1.201305150313 Ti BB SDK : 3.1.1.v20130522143723 Mac OSX : 10.8.2 win 7 Win 8 Z10 BB simulator : 10.0.10.822 Z10 device running 10.0.10.88 Q10 Simulator : 10.1.0.1720 Q10 Dev alpha C device running 10.1.0.138
  6. Josh Roesslein 2013-05-23

    Re-open to fix labels.
  7. Olga Romero 2014-05-27

    Reopened Appcelerator Studio, build: 3.3.0.201405211748 Titanium SDK, build: 3.3.0.v20140524224144 Node.JS Version: v0.10.13 NPM Version: 1.3.2 acs@1.0.14 alloy@1.4.0-alpha4 npm@1.3.2 titanium@3.3.0-alpha5 titanium-code-processor@1.1.1 Device: BB Z10 (10.2.1) Orientation indicates portrait only even when device is rotated to landscape mode @[~penrique] I will close this ticket and reopen TIMOB-14011

JSON Source