Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3159] Android: Setting Orientation on Single window not recoginized

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-05-16T16:36:35.000+0000
Affected Version/sn/a
Fix Version/sRelease 2.0.1
ComponentsAndroid
Labelsqe-port
ReporterAlan Leard
AssigneeNeeraj Gupta
Created2011-04-15T03:38:19.000+0000
Updated2013-01-21T18:00:54.000+0000

Description

If you allow all orientation modes in the application but then set one window to a certain orientation, the orientation is not respected for that window.

Ticket Reference: http://developer.appcelerator.com/helpdesk/view/73831">http://developer.appcelerator.com/helpdesk/view/73831

Attachments

FileDateSize
test.zip2011-04-15T03:38:20.000+0000831448

Comments

  1. Opie Cyrus 2011-04-15

    Currently, there is a bug that prevents the orientation from being set correctly on the activity when set from the lightweight window. Ticket #3168 has been opened for the issue.

    In order to bypass the issue for the time being, the window can be opened as a heavyweight window by using "fullscreen:true" or "modal:true". Another option is to set a reference to the parent heavyweight window on the child window. I have attached a test app to the ticket to demonstrate the second approach.

  2. Opie Cyrus 2011-04-15

    Actually, future updates and fixes for this problem will be associated with this ticket rather than #3168

  3. jj 2011-04-15

    Your solutions are a non-starter since if you load a heavyweight window from app.js, you get an extra blank window in the stack

  4. Opie Cyrus 2011-04-15

    Hi jj,

    If your concern is the blank window when hitting back from your heavyweight window in app.js, you can add "exitOnClose: true" to the creation args when you create the window from app.js and you should no longer see the blank window when exiting the app.

    Thanks
    Opie

  5. Federico Casali 2012-05-16

    Not able to reproduce with 2.0 and 2.1 CI builds. Closing.
  6. Olga Romero 2013-01-21

    Tested with: Titanium Studio, build: 3.0.1.201212181159 Titanium SDK, build: 3.0.2.v20130118180632 Device: HTC-EVO Android version 4.0.3 Closing

JSON Source