Device orientation

Hi there,
digging more and more on the forum I found this code to detect device orientation, and so to add function if landscape or not and it seems to work well. There it is by @sgibm : How to ask user to change orientation to portrait if he/she rotates phone to landscape mode

1 Like