如何在电话通话期间播放存储在电话内存中的音频剪辑,并且呼叫接收者应该听到相同的音频剪辑...
我正在使用简单的代码:
public void onCallStateChanged(int state, String incomingNumber) {
String stateString = "N/A";
switch (state) {
case TelephonyManager.CALL_STATE_IDLE:
stateString = "Idle";
break;
case TelephonyManager.CALL_STATE_OFFHOOK:
stateString = "Off Hook";
break;
case TelephonyManager.CALL_STATE_RINGING:
stateString = "Ringing";
break;
}
真的,我不知道如何编写代码来自动播放音频文件,而接收器只会为特定号码接听我的电话.....