Pages

Get it free, Try now

Free Cell Phones

Thursday, January 20, 2011

Android Application Screen Orientation issues

Screen Orientation issues to know when designing Android Application

1. To design application in Portrait Mode only add screen orientation attribute in manifest.xml, make sure you add inside activity,

android:screenOrientation="portrait"

2. Sometimes views/Controls in the application initializes on change in Orientation. add android:configChanges in manifest.xml, inside activity attribute

android:configChanges="Orientation"

wish to manipulate with Keyboard use

android:configChanges="keyboardHidden|Orientation" this is more useful when application is installed on hard keyboard devices.