Hi Ajay, auto-rotate was definitely on. In fact I never turn it off, but it was the first thing I thought of when the app stopped rotating so I double checked and it was turned on.
Also, we tested on 3 different devices and the app failed to rotate on all 3 (Samsung Galaxy S4, Nexus 7 and a Xiaomi phone).
We’re actually using Enterprise rather than the SDK, is there perhaps a new setting I need to add to my AndroidManifest.xml file? Currently it looks like this:
android:screenOrientation="user" android:configChanges="keyboardHidden|screenSize|orientation" android:label="@string/app\_name" android:theme="@android:style/Theme.NoTitleBar.Fullscreen"\> \<meta-data android:name="supportsOrientationPortrait" android:value="true" /\> \<meta-data android:name="supportsOrientationPortraitUpsideDown" android:value="true" /\> \<meta-data android:name="supportsOrientationLandscapeRight" android:value="true" /\> \<meta-data android:name="supportsOrientationLandscapeLeft" android:value="true" /\>
Edit: I should also mention that in the device’s logcat, I can see that the device is processing some rotation stuff, but there’s no Corona code to say it’s rotating (I have an orientation listener which should be printing out):
02-26 09:24:52.345 818-818/? D/CAE: onGetSensorHubData(SensorHubParserProvider.java:69) - onGetSensorHubData Event [event buffer len :4] 02-26 09:24:52.345 818-818/? I/CAE: parse(SensorHubParserProvider.java:142) - buffer size = 4 02-26 09:24:52.345 818-818/? I/CAE: parse(SensorHubParserProvider.java:153) - 1, 1, 7, 1, 02-26 09:24:52.345 818-818/? D/CAE: display(ContextProvider.java:357) - ================= AUTO\_ROTATION ================= 02-26 09:24:52.345 818-818/? I/CAE: display(ContextProvider.java:373) - Angle=[1] 02-26 09:24:52.345 818-818/? D/SContextService: updateSContext() : event = Auto Rotation 02-26 09:24:52.345 818-818/? V/WindowOrientationListener: mSContextAutoRotationListener.onSContextChanged, Rotation: 1 02-26 09:24:52.345 818-818/? V/WindowOrientationListener: mSContextAutoRotationListener.getProposedRotation, mbResultFaceDectection: false 02-26 09:24:52.345 818-818/? V/WindowOrientationListener: mSContextAutoRotationListener.getProposedRotation, Rotation: 1 02-26 09:24:52.345 818-818/? V/WindowManager: rotationForOrientationLw(orient=-1, last=0); user=0 sensorRotation=1 mLidState=-1 mDockMode=0 mHdmiPlugged=false mAccelerometerDefault=false gripRotationLock=false 02-26 09:24:52.355 818-818/? V/WindowOrientationListener: mSContextAutoRotationListener.getProposedRotation, mbResultFaceDectection: false 02-26 09:24:52.355 818-818/? V/WindowOrientationListener: mSContextAutoRotationListener.getProposedRotation, Rotation: 1