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

On Android, changing orientation fires Event.DEACTIVATE and FlexEvent.VIEW_DEACTIVATE events

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Not A Problem
    • Adobe Flex SDK 4.6 (Release)
    • None
    • Samsung Galaxy Express and Galaxy S III Android Phones, FlashBuilder 4.7 Premium on Windows 7, debugging through USB as well as deployed release builds, iPhone and iPad, but the problem doesn't exist on iOS devices, only Android

    Description

      Orientation changes on Android devices always fire the following events in this order:

      ViewNavigatorEvent.VIEW_DEACTIVATE
      Event.DEACTIVATE
      StageOrientationEvent.ORIENTATION_CHANGE

      The first two events are a defect. They must not fire simply because the user changed the orientation of the phone.

      The result of this defect is that we cannot do two very important things:

      1. Use view state changes to hide/show layouts, using includeIn property on containers and components. On Android, components that are not included for a given state are destroyed yet they have state we want to maintain which is why we don't change Views.

      2. We cannot know when the user navigates away from our application, for example to press the Home key. We have certain cleanup we must do in our complex connected app that streams FMS data, etc., and cannot keep sockets open for hours or days.

      On iOS, this is not a problem. Only Android has this bug and it's blocking us from releasing our product on Android. iOS does not have this defect.

      Attachments

        Activity

          People

            bigosmallm Om
            ejthomas@ejthomas.com Erik Thomas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: