1

可能重复:
我可以以编程方式拨打匿名电话吗?

我想在拨出电话中隐藏电话号码。我尝试使用 BroadCastReceiver 来完成,我可以替换号码但不能隐藏。

public class OutgoingCallReceiver extends BroadcastReceiver {

    private static final String TAG = "OutCallReceiver";

    @Override
    public void onReceive(Context context, Intent intent) {
        String orginalNumber = intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER);
                Log.d(TAG, ">>>>> orginalNumber:" + orginalNumber);

        //This does not work
        //intent.putExtra(Intent.EXTRA_PHONE_NUMBER, "");

        String resultData = super.getResultData();
        Log.d(TAG, ">>>>> resultData:" + resultData);

                //This makes end call.
                //this.setResultData("");
    }

}

我必须更换拨出电话屏幕吗?有没有办法实现它。请帮我。提前致谢。

4

0 回答 0