freeze portrait orientation [ 591 views ]
Goal: avoid the screen rotation
If you want to ignore the rotation of the device you can freeze the orientation like this. Put the following line into the manifest file (AndroidManifest.xml) under the activity section:
<application ... <activity ... android:screenOrientation="portrait">