Monthly Archives: May 2012

Get to know the orientation of your activity

 int i = getResources().getConfiguration().orientation;

  if (i == Configuration.ORIENTATION_PORTRAIT) {
  
    } else {
  
    }

i == 0 means Orientation is landscape