I would like to find out the detailed orientation of a device, preferably one of SCREEN_ORIENTATION_LANDSCAPE, SCREEN_ORIENTATION_PORTRAIT, S
SCREEN_ORIENTATION_LANDSCAPE
SCREEN_ORIENTATION_PORTRAIT
S
Simple approach would be to use
getResources().getConfiguration().orientation
1 is for Potrait and 2 for Landscape.