Avtar Guleria
Avtar Guleria

Reputation: 2136

Sending calls to voice mail

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

1.) Is the only 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.

Upvotes: 1

Views: 868

Answers (1)

Vineet Shukla
Vineet Shukla

Reputation: 24031

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.

Upvotes: 0

Related Questions