android Outbound caller id - on/off

前端 未结 5 1511
广开言路
广开言路 2021-01-06 20:44

I wan to hide/show my caller id from my activity programmatically. I tried to find it in the android documentation but without the luck. Maybe you have any ideas?

5条回答
  •  無奈伤痛
    2021-01-06 21:08

    If the #31# trick works for your needs for a single call then you could add a broadcast receiver that listens for the outgoing call notification and modifies the number to include #31# at the start before it gets dialled. Android allows the number to be changed on the way through like that.

    Only works if your default is to enable caller ID and your network support #31# and you want to toggle it off using a widget, say.

提交回复
热议问题