Skip to content

Instantly share code, notes, and snippets.

@MaximAlien
Created January 13, 2016 20:33
Show Gist options
  • Save MaximAlien/d0f57f3b0761e254a5cc to your computer and use it in GitHub Desktop.
Save MaximAlien/d0f57f3b0761e254a5cc to your computer and use it in GitHub Desktop.
[Android] Check current orientation
if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {
} else if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment