In Android, how can one add and remove a contact or a phone number from/to the black list. Is there API for that? Surprisingly, I haven't found anything about the matter.
Create your own custom list for blacklist number and create a broadcast receiver for incoming call events and check for number. if user rejects a call capture that event and get that phone number and then show popup to user if they want to add that number to blacklist or not. In this case you have to store your list in database also. For capturing accept or reject events follow this link Detecting call reject event
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With