Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-27659

Mobile Application iOS - orientation issues

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • Adobe Flex SDK Previous
    • None
    • None
    • Affected OS(s): Apple IOS
      Language Found: English

    Description

      Steps to reproduce:

      This bug is specifically regarding mobile applications on iOS - in this case, I'm using an iPad 2.

      1. Open the application (for the 1st time) in portrait mode.
      2. Close the application (return to home screen on iPad)
      3. Turn the device to landscape orientation
      4. Open application (choose icon from home screen)

      Actual Results:
      There are elements in the code (both in ActionScript and MXML) that are designed to adjust themselves based on the width of the screen. There does not seem to be a function to detect that the device's orientation had been changed while off and to check this upon restarting the app. The application should, but does not, fire an event (StageOrientationEvent.ORIENTATION_CHANGE) when the application is re-opened with an orientation different than that when it was turned off. For example, if the application is first opened in portrait and then turned off - if I turn the device to landscape then turn the application back on it should automatically recognize the orientation change and fire (if assigned) the proper event to handle any actions associated with such a change.

      Again, there needs to be some kind of persistent information to record the orientation when the application is closed then, when opened again, compare the orientation to the previous orientation and, if these are different, fire the appropriate orientation_change event.

      Expected Results:

      I would expect the device to keep track of the previous orientation prior to being closed. Then, when restarted, evaluate if the device is in the same (or different) orientation. If the orientation is different, perform a standard function associated with an orientation change.

      Such as this:
      stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGE,orient)

      Workaround (if any):

      Obviously physically turning the device several times fires the StageOrientation function.

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: