开发者

Sending calls to voice mail

开发者 https://www.devze.com 2023-03-30 13:51 出处:网络
I want to send the incoming call present in my blocked call list to voice mail. 1.) Is the only 开发者_JAVA技巧way to do it is by \"SEND_TO_VOICEMAIL\" present in ContactsContract api in android?

I want to send the incoming call present in my blocked call list to voice mail.

1.) Is the only 开发者_JAVA技巧way to do it is by "SEND_TO_VOICEMAIL" present in ContactsContract api in android?

2.)If yes, then can i edit the contacts already present in my contacts list of phone so to add this flag to them?

Please share solution with some code or example or any useful link.

Thanks in advance.


First you need to listen for incoming call and then disconnect it programmatially...

To send to voice mail, voice mail facility should be activated on the device and after disconnecting it will automatically direct to voice mail if the calling person wants to send to voice mail.

0

精彩评论

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

关注公众号