NativeApplication.nativeApplication.addEventListener(Event.ACTIVATE, handleAppActivate);
private function handleAppActivate(e:Event):void
{
_active = true;
if (_starling) _starling.start();
SoundManager.instance.resumeAll();
}
This event is fired after user activates my application. Now what happens on Android is when I press power button to lock screen and again to unlock it, this event is fired and despite I'm still seeing the lock screen that tells me to pull the thing to unlock, my app's music is playing in the background.
Can I wait with the event till the user actually sees the application?