I'm developing an audio application. It plays sounds in the background and I want it to turn off when an incoming call happens but not when the screen locks. My first chance was to call player.stop() on onPause as I thought it will do the trick when incoming or other applications will run on top. But I found that screen lock calls also this onPause event.
Is there any chance to get the cause of that calling?