[TIMOB-13635] BlackBerry Q10: Orientation change does not work on Q10 device
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2013-05-26T17:47:40.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | BlackBerry |
Labels | sdk-bb |
Reporter | Lokesh Choudhary |
Assignee | Russell McMahon |
Created | 2013-04-19T22:34:29.000+0000 |
Updated | 2017-03-13T18:29:27.000+0000 |
Description
Description:
1. Create an app for BB with the code below in the app.js
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();
2. Also add the following lines 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>
3. Build & run for BB device/emulator
4. After the app launches in portrait mode turn the device to landscape or other orientations
Actual results:
1. The orientation does not change
Expected Result:
1. The orientation should change
Closing this ticket as the issue will not fix.