Alex Rivera | Logout

Lock Android phone application to Portrait mode

Asked 2011-02-18T17:31:22.880
113

Can someone tell me how to lock my application to a portrait mode? Is it a simple configuration in the manifest file?

Edit
Report

1 Answer

12

Also, you may have to add the following to your activity element:

android:configChanges="keyboardHidden"

That way, the OS won't change the orientation when the user opens a sliding keyboard.

answered 2011-02-18T19:48:03.843

Your Answer