问题
I have made an Android app using Titanium. The screen rotates when device rotate, how can i stop window/screen orientation in Android app?
回答1:
Use android:screenOrientation="portrait"
in the Android Manifest file in the <activity>
element.
See this: Activity
回答2:
I spent my whole day to solve this stupid issue, finally i found the solution to solve the android orientation issue.
Please refer to link here. The article is helpful and clearly stated step by step how to implement.
This also solved the splash screen orientation.
Thanks.
来源:https://stackoverflow.com/questions/5348602/titanium-android-screen-orientation