I am developing an app in Flash CS6 targeting AIR 21.0.0.176 for Android. I have set up listeners for NativeApplication.nativeApplication Event.ACTIVATE and Event.DEACTIVATE. These work as expected when the Android device is running standalone or if I am debugging via the USB interface to CS6. However if I deploy to the local simulator, then whenever I use the simulator interface to generate a change in accelerometer or geolocation, the app receives a DEACTIVATE event.
This makes troubleshooting difficult because on my DEACTIVATE event handler I by stop all interactive functions in the app.
Any ideas please?