Skip to main content

Posts

Basic view component Button -1

Watch this on YouTube Watch part -2

Basic view component TextView -2

Watch this on YouTube

Basic view component TextView -1

Watch this on YouTube Watch Part -2

Android in Malayalam - Introduction

Watch this on YouTube

Basic view components TextView part -2

Watch this on YouTube

Basic view components TextView part -1

Watch this on YouTube Watch part -2

Getting current display orientation of android device

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();     ...