[AC-4724] Android ScreenRotation still works when turning it off natively
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Invalid |
Resolution Date | 2017-01-13T11:19:12.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android, rotation |
Reporter | Creative |
Assignee | Shak Hossain |
Created | 2017-01-12T13:42:44.000+0000 |
Updated | 2017-01-13T13:52:44.000+0000 |
Description
When I put "Automatic Rotation" off using the native functionality in Android (6.0.1), my Titanium app (currently on 6.0.1.GA, coincidentally) still allows rotating the screen when rotating the device.
I cant find a specific option i need to set in Tiapp.xml or AndroidManifest.xml.
Hello, I am not clear about what you mean with "using the native functionality". Do you mean by disabling auto rotation in device? Cause, I tested a hello world project the app stays portrait mode with auto rotation off. The project build in SDK 6.0.1.GA and running on Android 6.0.1 device. See guide for limiting orientation in Android: http://docs.appcelerator.com/platform/latest/#!/guide/Orientation. Thanks.
You can specify it in the
<android>
section of your tiapp.xml:Yes, my bad, I managed to fix it with some fiddling. I might follow this up with a new bugreport coming week, because it mightve been conflicting with a tss file for a