Starting today I now have my Flash Builder 4.7 closing the android emulator if I click anywhere outside the emulator screen. Which makes it really hard to debug, only started today, and I have no idea what has caused it.

Also, launching it on a device (Motorolla XOOM), it's closing pretty much as soon as it loads.

My main issue is that I have idea at all why it's doing this, and there's no error message or anything, it just closes and the console goes dead.

To expand on this as I pull what's left of my hair out, I find that if I put a breakpoint in the app I can then click on Flash Builder without it closing the emulator, and I can step through ok... BUT... if I then press play to let it go on again, it loses focus.

This is utterly infuriating and has pretty much wasted a day of coding so far, and running the code on the device is worse as it just closes at random points.

I have completely uninstalled and done a fresh install of Flash Builder.

I have tried overlaying Air SDK 3.5 on both the Flex 4.6 and the air directories

This was for some reason or other... but it wasn't affecting him as he was only testing on a nexus 10, which for some reason that event doesn't get fired unless you are actually trying to exit the app.

But on the Galaxy Xoom, and the air emulator it gets called just whenever the app is told to go to sleep or lose focus I guess.