Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to (un)blacklist contact/number in Android?

Tags:

android

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.


1 Answers

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

like image 146
Vivek Mishra Avatar answered Feb 03 '26 00:02

Vivek Mishra



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!