Watch this on YouTube In some situations we need to to know what is the current display orientation of the device. In this post i explain how to get the current orientation of an android device. In order to get the display orientation of the android device you need to first get the display information of the device. For getting the current display info you need to get an object of WindowManager class using the method getWindowManager(). After getting it you need to obtain an object of Display class using the WindowManager object and getDefaultDisplay() method. WindowManager manager = getWindowManager(); ...
Computer Programming Video Tutorials