I was trying to build a simple web page for Android that has two different layouts depending on the orientation. I used the emulator to test the page: Android emulator version 7.0 (build_id OPENMASTER-53891) on Mac.
I tried the CSS media query orientation:
and also the JavaScript method but to no avail: when I changed the orientation on the emulator, nothing happened. Is this because of the emulator i.e. the emulator browser doesn't properly work upon orientation change?