or only ever landscape. I, however, only want the app to be portrait, so let's focus on that.
In my app, i have, of course, this in the tiapp.xml file:
<activity android:name="org.appcelerator.titanium.TiActivity" android:screenOrientation="portrait"/> <activity android:name="org.appcelerator.titanium.TiTranslucentActivity" android:screenOrientation="portrait" android:theme="@android:style/Theme.Translucent"/> <activity android:name="org.appcelerator.titanium.TiModalActivity" android:screenOrientation="portrait" android:theme="@android:style/Theme.Translucent"/> <activity android:name="ti.modules.titanium.ui.TiTabActivity" android:screenOrientation="portrait"/> <activity android:name="ti.modules.titanium.ui.android.TiPreferencesActivity" android:screenOrientation="portrait"/>This is great IF and ONLY IF when the app is opened, the mobile device is in the "portrait" orientation. Once the splash screen is done, the device can be oriented any way you'd like, and all the screens are in portrait mode.
HOWEVER. If during the splash screen the device is in landscape (or even initially in portrait and then moved to landscape), then trouble happens. All the screens I have build now have the "width" and "height" values swapped - it's like the Ti.Platform.displayCaps.platformWidth and Ti.Platform.displayCaps.platformHeight values get "swapped" during the splash screen and so all my following screens look stupid.
This isn't what I want - I want the app to only ever be in portrait mode. I want it in the splash screen, and I want it everywhere else, regardless of how the mobile device itself is oriented.
What do I need to do to set this? This is really really irritating.
Also, I just thought I'd note that not having an "edit post" ability on these forums is exceedingly moronic.