由网友(半空日落色)分享简介:有谁知道是否有任何事件来处理来电?我正在开发一个应用程序,流来自麦克风的音频,我想有一个侦听器,停止记录,等当有来电...那重启procress当电话呼叫结束。Does anybody know if there is any event to handle incoming calls?? I'm developi...
有谁知道是否有任何事件来处理来电?我正在开发一个应用程序,流来自麦克风的音频,我想有一个侦听器,停止记录,等当有来电...那重启procress当电话呼叫结束。
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 procress when the telephone call is over.
推荐答案
您可以创建一个的BroadcastReceiver
,并听取了 TelephonyManager#ACTION_PHONE_STATE_CHANGED
行动。
You can create a BroadcastReceiver
and listen for the TelephonyManager#ACTION_PHONE_STATE_CHANGED
action.
相关推荐
最新文章