我在这个主题上搜索和搜索了两个多小时,但也许搜索出现问题,因为我什么也没找到。

有人可以帮我吗?任何主题,教程,一段代码?

我想监视来电(我想我将能够执行此部分),并将其中一些发送到语音邮件。我正在使用Android Level 8平台2.2

谢谢...

最佳答案

您可以发送一些代码以将呼叫转移激活到网络运营商级别的任意号码,但是可能不适用于世界各地的所有运营商。

在这里检查http://en.wikipedia.org/wiki/Call_forwarding

void sendCommand(String command){
    Intent intentCallForward = new Intent(Intent.ACTION_CALL);
    intentCallForward.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    Uri uri = Uri.fromParts("tel", command, "#");
    intentCallForward.setData(uri);
    startActivity(intentCallForward);
}


然后转接电话

sendCommand("*21*001234567890#")


并删除呼叫转移

sendCommand("##21#")


您可以尝试各种可能更适合您需求的代码

09-26 20:00