Re: [flexcoders] Flex Mobile Android 4 (ICS)

2012-07-03 Thread Jake Churchill
I found out what was happening. I had a global deactivate handler (I don't want this particular app running in the background). Apparently, this gets called by Android when switching orientation. The whole app de-activates, then re-activates in a new orientation. So, handling that, fixed my app

Re: [flexcoders] Flex Mobile Android 4 (ICS)

2012-07-03 Thread Nick Collins
protected function view_resizeHandler(event:ResizeEvent):void { if (width>height) this.currentState="landscape"; else this.currentState="portrait"; } On Tue, Jul 3, 2012 at 6:11 AM, Nick Collins wrote: > actually listen for a RESIZE event on the view, then check if the width > of t

Re: [flexcoders] Flex Mobile Android 4 (ICS)

2012-07-03 Thread Nick Collins
actually listen for a RESIZE event on the view, then check if the width of the view is greater than the height. If it is, landscape, if not, portrait. On Fri, Jun 22, 2012 at 2:56 PM, Jake Churchill wrote: > ** > > > I got my hands on an android 3 tablet and the same thing happens there. I > w

Re: [flexcoders] Flex Mobile Android 4 (ICS)

2012-06-22 Thread Jake Churchill
I got my hands on an android 3 tablet and the same thing happens there. I was also able to test on an android 2.3 phone and it does not happen there. So, anything in android 3 or 4 and orientation changes that I should be aware of? Thanks! -Jake On Fri, Jun 22, 2012 at 12:21 PM, Jake Churchill

Re: [flexcoders] Flex Mobile Android 4 (ICS)

2012-06-22 Thread Jake Churchill
One other thing I tried. If I stop the autoOrient and manually flip my orientation via code, the same thing happens. Usually when an app stops in debug mode you get the [Unload SWF] trace line but I'm not getting that so it makes me think it's just suspending it? This is super frustrating though

Re: [flexcoders] Flex Mobile Android 4 (ICS)

2012-06-22 Thread Jake Churchill
Let's compare really quick... I'm just listening for the orientationChange event and switching states in my view accordingly. (Code below) Is that basically how you handle it as well or are you doing something different? I'm adding this event listener: stage.addEventListener( StageOrientationEv

Re: [flexcoders] Flex Mobile Android 4 (ICS)

2012-06-22 Thread Nick Collins
I have been doing active development with Flex 4.6 on my HTC Inspire 4G (running IceColdSandwich/Android 4.0.4) with no such problems. The only problem I have had is that Flash Builder doesn't always see the device as still being in debugging mode, even though the device indicates that it is. Solve

[flexcoders] Flex Mobile Android 4 (ICS)

2012-06-21 Thread Jake Churchill
I'm in the middle of writing a flex mobile app and when I debug in the emulator it's fine but on my phone (Verizon Google Nexus) when I rotate to landscape it dies. If I start up in landscape, it's fine until I switch to portrait, then it dies. In either case, there is no error in the debug conso