开发者

event to identify Call Answering In Android

开发者 https://www.devze.com 2023-04-07 16:13 出处:网络
Hi i am developing call recording application. I want to know call answering event. For example if the user lift the call then i have to start recording. How to know whether he answer开发者_Go百科ed a

Hi i am developing call recording application. I want to know call answering event. For example if the user lift the call then i have to start recording. How to know whether he answer开发者_Go百科ed a call or not


http://peacemoon.wordpress.com/2009/08/06/android-listening-to-incomingoutgoing-phone-calls/

    case TelephonyManager.CALL_STATE_OFFHOOK:
    //CALL_STATE_OFFHOOK;
// do ur work here(after receiving call)
    break;


You need to create a BroadcastReceiver and listen for the TelephonyManager events. ACTION_PHONE_STATE_CHANGED is the one you should listen.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号