Android Question dismiss a phone call by phone number


Active Member
Licensed User

I wanted to create an app that dismisses an incoming phone call by filtering the phone number.
(for example, if the phone number contains "054742", the app will automatically dismiss it.

I looked out the "PhoneStateChanged" event but didn't know if I can get the phone number of the incoming call from the event, and also how to dismiss it...

Does anybody know how (if it's possible) to get the phone number of an incoming call, even if the app is closed (using an event), and dismiss an incoming phone call?

Thanks in advance