Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8773415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:17:21+00:00 2026-06-13T18:17:21+00:00

how do i fix the device rotation in a titanium app across all mobile

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T18:17:23+00:00Added an answer on June 13, 2026 at 6:17 pm

    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

    <android xmlns:android="http://schemas.android.com/apk/res/android">
        <manifest>
            <application>
                <activity
                    android:configChanges="keyboardHidden|orientation"
                    android:name="org.appcelerator.titanium.TiActivity" android:screenOrientation="portrait"/>
                <activity
                    android:configChanges="keyboardHidden|orientation"
                    android:name="org.appcelerator.titanium.TiTranslucentActivity"
                    android:screenOrientation="portrait" android:theme="@android:style/Theme.Translucent"/>
                <activity
                    android:configChanges="keyboardHidden|orientation"
                    android:name="org.appcelerator.titanium.TiModalActivity"
                    android:screenOrientation="portrait" android:theme="@android:style/Theme.Translucent"/>
                <activity
                    android:configChanges="keyboardHidden|orientation"
                    android:name="ti.modules.titanium.ui.TiTabActivity" android:screenOrientation="portrait"/>
                <activity
                    android:name="ti.modules.titanium.ui.android.TiPreferencesActivity" android:screenOrientation="portrait"/>
            </application>
        </manifest>
    </android>
    

    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

    android:screenOrientation="portrait" 
    

    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

    <ios>
        <plist>
            <dict>
                <key>UISupportedInterfaceOrientations</key>
                <array>
                    <string>UIInterfaceOrientationPortrait</string>
                </array>
            </dict>
        </plist>
    </ios>
    

    this will replace whatever is in your current ios element, and is at the same level as the android element

    ie

    <?xml version="1.0" encoding="UTF-8"?>
    <ti:app xmlns:ti="http://ti.appcelerator.org">
        ...
        <ios>
            ...
        </ios>
        <android>
            ...
        </android>
    </ti:app>
    

    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!!!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using box2d for ios app development.I would like to fix device orientation
I have a field device which keeps on sending data over to any designated
I managed to get Ubuntu running on a mobile device. I need to automate
I'm trying to write a quick app to fix the ID3 tags on my
Once an iOS device has acquired a GPS fix, it will cache that coordinate
I'm running my android app on my droid x2 device. this app has a
I have a Windows Mobile application in which I want to check the device
Why does eclipse SOMETIMES prompt me which device to launch my app on when
I've a Windows CE device on which I try to install all Exceptions message
In my app I have a latitude-longitude of 1 fix location. Now user with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.