how do i fix the device rotation in a titanium app across all mobile platforms? Any references to official doco would be super useful!
so i don’t want to so much “disable rotation” as “only ever let the app run in a particular orientation” (which in my case is portrait mode)
cheers
Full-ish answer – this will STILL allow an orientation change when the loading screen starts up. Titanium seems to be holding this one close to their chest, but here goes:
in the tiap.xml file, you need to make changes to the first indentation-level android element
the above code can be dropped in (remove the existing android element first, of course!) and should work.
The trick here is the use of
which sets the orientation to portrait. The other option is ‘landscape’, of course. I think if you leve this out the the default behaviour is to allow the orientation to switch around.
iOS is, of course, easier.
In the same tiapp.xml file you need
this will replace whatever is in your current ios element, and is at the same level as the android element
ie
I still don’t know how to stop android (and possibly ios) from re-orienting the splash screen, if anybody knows how let me in on the secret!!!