android - How to resume application after unlock -
nativeapplication.nativeapplication.addeventlistener(event.activate, handleappactivate); private function handleappactivate(e:event):void { _active = true; if (_starling) _starling.start(); soundmanager.instance.resumeall(); } this event fired after user activates application. happens on android when press power button lock screen , again unlock it, event fired , despite i'm still seeing lock screen tells me pull thing unlock, app's music playing in background.
can wait event till user sees application?
in activity, befor lock, calls onpause() , after unlock , calls onresume(). can write own code in these 2 functions.
Comments
Post a Comment