How to detect the landscape/portraite mode?

Printable View