Screen Orientation on Titanium Screen

I made an Android app using Titanium. The screen rotates when the device rotates, how can I stop the window / screen orientation in the Android application?

+5
source share
2 answers

Use android:screenOrientation="portrait"in the Android manifest file in the element <activity>.

Watch this: Activity

+6
source

I spent all my day solving this stupid problem, finally I found a solution to solve the problem of targeting Android.

Please refer to the link here . The article is useful and clearly indicated step by step how to implement.

It also decided the screen orientation.

Thank.

0

All Articles