Does anybody know if there is any event to handle incoming calls?
I’m developing an app that streams audio from the microphone and I would like to have a listener that stops the recording, etc when there is an incoming call, and that restarts the process when the telephone call is over.
Does anybody know if there is any event to handle incoming calls? I’m developing
Share
You can create a
BroadcastReceiverand listen for theTelephonyManager#ACTION_PHONE_STATE_CHANGEDaction.