Supposedly, Android 16 (api 36) ignores forced ori...
# android
p
Supposedly, Android 16 (api 36) ignores forced orientation and makes all activities to be portrait or landscape depending on device orientation. But I'm testing it, and my "portrait" forced activity is still always portrait, even changing orientation of the simulator to landscape. I'm compiling with Api 36, targeting Api 36, and executing the app in Android 16 simulator. Any idea what is happening here? Why `android:screenOrientation="portrait"`or`setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT)`are still working?
not kotlin but kotlin colored 4
👍 1
e
https://developer.android.com/about/versions/16/behavior-changes-16#ignore-orientation
On displays with smallest width >= 600dp, the restrictions no longer apply.
p
I'm testing it on a pixel 9, which has 1080 x 2424 resolution
but I'm not sure how much dp is that 1080 width
e
it's meant for tablets
☝🏻 1
☝️ 2
☝🏾 1
u
I observe the behaviour across all apps that I maintain, There is no change, same behaviour as before. I'm assuming they are still running in compatibility mode