You can lock the orientation mode for Android in Titanium by successfully implementing the following steps :
By following the below steps you can lock the orientation mode throughout the app.
1) Create a custom AndroidManifest.xml (copy this from original generated source
"build/android/AndroidManifest.xml")
2) Copy this on the created folder "platform/android/AndroidManifest.xml" at the top level of your project.(Inside your project root)
3) Add this: android:screenOrientation="portrait" to all activities
4) Remove this: "|orientation" from all activities.
Here is my AndroidManifest.xml.
Here you can download the complete working project from my Github account Titanium-Android-Orientation
By following the below steps you can lock the orientation mode throughout the app.
1) Create a custom AndroidManifest.xml (copy this from original generated source
"build/android/AndroidManifest.xml")
2) Copy this on the created folder "platform/android/AndroidManifest.xml" at the top level of your project.(Inside your project root)
![]() |
| Locking Android Orientation Mode |
3) Add this: android:screenOrientation="portrait" to all activities
4) Remove this: "|orientation" from all activities.
Here is my AndroidManifest.xml.
Here you can download the complete working project from my Github account Titanium-Android-Orientation

Yes ...This is used by me and it's Working
ReplyDeleteThanks! It works perfectly!
ReplyDelete