The return parameter may be one of
ORIENTATION_LANDSCAPE
, ORIENTATION_PORTRAIT
, or ORIENTATION_SQUARE
.
public static int getScreenOrientation(){
return getResources().getConfiguration().orientation;
}
check http://developer.android.com/reference/android/content/res/Configuration.html#orientation for details
No comments :
Post a Comment
Your Comment and Question will help to make this blog better...