Android Question Not able to detect orientation in Android 11?

Daica

Active Member
Licensed User
I am using the code from this thread: https://www.b4x.com/android/forum/t...-with-portrait-orientation.106872/post-669094
It works fine on Android 10 phone, but on Android 11 phone, when the phone's orientation is changed, the event doesn't trigger.

Anyone else solved this yet?

EDIT:
For some reason, it was working on Android 10 even though I didn't import the "Phone" library.
I included the "Phone" library on Android 11 device and now it's working.
 
Last edited:
Top