Recently while developing my personal project, I had a requirement to find the default screen orientation of device. Tablet default screen orientation is landscape whereas Mobile phone default screen orientation is portrait. Well after a little bit of research I found that getRotation method can fetch me the default orientation.
↧