Tuesday 28 May 2013

Lock Android Orientation Mode


Locking Android Orientation Mode :


Follow Below Steps For Locking the Android Orientation Mode : 

  * Create a custom AndroidManifest.xml (Just Copy the generated AndroidManifest
"build/android/AndroidManifest.xml")

* Copy AndroidManifest.xml on the created folder "platform/android/AndroidManifest.xml"
at the top level of your project.(Inside your project root)

Alloy Architecture
Without Alloy


*  Add this: android:screenOrientation="portrait" to all activities in AndroidManifest.xml file

*  Remove this: "orientation" from all activities.


Here is my AndroidManifest.xml :