Skip to main content
Participant
December 24, 2011
Question

Pausing app when an incoming phone call comes in

  • December 24, 2011
  • 1 reply
  • 880 views

I hvae an app which has been turned down by Amazon app store because it does not turn off when an incoming call arrives. Is their a setting for this? For instance by selecting the 'Export Device Sounds' click box in Publish Settings, audio event? All sounds in my app are started by clicking a play button with the sound embedded in the button.

thanks for any help

steve

This topic has been closed for replies.

1 reply

December 24, 2011

Hello mate,

If i'm not wrong, I think your app should listen for these two events:

        NativeApplication.nativeApplication.addEventListener(Event.DEACTIVATE, deactivateHandler);
       

NativeApplication.nativeApplication.addEventListener(Event.ACTIVATE, activateHandler);

On the deactivateHandler you should pause or stop the sound and on the activateHandler you should restart it.