Τετάρτη, 25 Φεβρουαρίου 2009

Android get Screen orientation

You can check your screen orientation by calling:
[code]int orientation = getWindowManager().getDefaultDisplay().getOrientation()[/code]
and checking if it equals on of the following...

Configuration.ORIENTATION_PORTRAIT
Configuration.ORIENTATION_LANDSCAPE
...

Δεν υπάρχουν σχόλια: