How can I check if the Android phone is in Landscape or Portrait?
Just simple two line code
if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) { // do something in landscape } else { //do in potrait }