Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 34B4ED398 for ; Tue, 29 Jan 2013 21:37:14 +0000 (UTC) Received: (qmail 45700 invoked by uid 500); 29 Jan 2013 21:37:12 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 45674 invoked by uid 500); 29 Jan 2013 21:37:12 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 45663 invoked by uid 99); 29 Jan 2013 21:37:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jan 2013 21:37:12 +0000 Date: Tue, 29 Jan 2013 21:37:12 +0000 (UTC) From: "OmPrakash Muppirala (JIRA)" To: dev@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLEX-33371) On Android, changing orientation fires Event.DEACTIVATE and FlexEvent.VIEW_DEACTIVATE events MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-33371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13565837#comment-13565837 ] OmPrakash Muppirala commented on FLEX-33371: -------------------------------------------- Ah, then this seems to be an AIR runtime issue. You might want to get this on Adobe's radar. I looked at the ViewNavigatorApplication class and I dont see anything fishy going on there. I see some other folks having this and similar issues as well: http://forums.adobe.com/thread/1007852 http://forums.adobe.com/message/4281681#4281681 A very similar bug that was fixed recently in the latest AIR runtime: https://bugbase.adobe.com/index.cfm?event=bug&id=3144722 Which version of AIR are you on? > On Android, changing orientation fires Event.DEACTIVATE and FlexEvent.VIEW_DEACTIVATE events > -------------------------------------------------------------------------------------------- > > Key: FLEX-33371 > URL: https://issues.apache.org/jira/browse/FLEX-33371 > Project: Apache Flex > Issue Type: Bug > Components: Mobile: MobileApplication > Affects Versions: Adobe Flex SDK 4.6 (Release) > Environment: 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 > Reporter: Erik Thomas > Priority: Critical > Fix For: Adobe Flex SDK 4.6 (Release) > > Attachments: AndroidDeactivateOnOrientationChangeDefect.zip > > > 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. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira