Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8492] Android: Impossible to lock the app in Landscape mode

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2012-04-18T14:59:44.000+0000
Affected Version/sRelease 1.8.2
Fix Version/sn/a
ComponentsAndroid
LabelsSupportTeam, core
ReporterMauro Parra-Miranda
AssigneeMax Stepanov
Created2012-04-02T15:40:30.000+0000
Updated2017-03-09T23:24:56.000+0000

Description

Problem Description

Have been trying to setup a tab app to be locked in landscape mode via tiapp.xml (modifying the android manifest):
  <android xmlns:android="http://schemas.android.com/apk/res/android">
    <manifest>
    <activity
    android:name="org.appcelerator.titanium.TiActivity"
    android:configChanges="keyboardHidden"
       android:screenOrientation="landscape"
    />
    <activity android:name="ti.modules.titanium.ui.TiTabActivity"
      android:configChanges="keyboardHidden"
    />
    
    <activity 
    	android:name="ti.modules.titanium.ui.TiTabActivity"
    	android:configChanges="keyboardHidden|orientation" 
        android:screenOrientation="landscape"

      />
  </manifest>
    </android>

Actual Results

The tabbed app doesn't show in landscape

Expected results

The tabbed app showing in landscape mode.

Test Case.

1. Create a new mobile Project 2. Replace the default android manifest section in the tiapp.xml with this:
  <android xmlns:android="http://schemas.android.com/apk/res/android">
    <manifest>
    <activity
    android:name="org.appcelerator.titanium.TiActivity"
    android:configChanges="keyboardHidden"
       android:screenOrientation="landscape"
    />
    <activity android:name="ti.modules.titanium.ui.TiTabActivity"
      android:configChanges="keyboardHidden"
    />
    
    <activity 
    	android:name="ti.modules.titanium.ui.TiTabActivity"
    	android:configChanges="keyboardHidden|orientation" 
        android:screenOrientation="landscape"

      />
  </manifest>
    </android>
4. Run

HD Discussion

http://support-admin.appcelerator.com/display/APP-654753

Comments

  1. Max Stepanov 2012-04-18

    Correct android manifest section in tiapp.xml (added **):
       <android xmlns:android="http://schemas.android.com/apk/res/android">
         <manifest>
         <application>
         <activity
         android:name="org.appcelerator.titanium.TiActivity"
         android:configChanges="keyboardHidden"
            android:screenOrientation="landscape"
         />
          
         <activity 
             android:name="ti.modules.titanium.ui.TiTabActivity"
             android:configChanges="keyboardHidden|orientation" 
             android:screenOrientation="landscape"
        
           />
       </application>
       </manifest>
         </android>
       
       
  2. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source