I'm building a music player and it should be paused when a voice/video chat is taking place. I know I could use an audio focus listener but is there any other way to achieve this?
I've googled a lot but still can't find anything related.
Is there any broadcast event like VOICE/VIDEO_CHAT_START(END)
or AUDIO_RECORD_START(END)
? Or something like TelephonyManager
I could add a listener to?
This question is different from this one. I want to detect events for audio recording instead of playing to be exactly.