Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to detect phone call broadcast receiver in android

Tags:

android

I am building an application in android, which will perform an action when any phone call will come in my phone. I have tried this with broadcast receiver and phone state listener. But it is not working. If i use activity then phone state listener works well and good but it is not working with Broadcast receiver. What i am doing wrong? Please any body help....

Thanks & Regards

like image 639
Sudipta Som Avatar asked May 13 '11 10:05

Sudipta Som


1 Answers

You can find some base code for that in this posts:

how do i retrieve the incoming phone call's number while ringing and store it in a variable in android?

How to block calls in android

like image 77
neteinstein Avatar answered Nov 14 '22 23:11

neteinstein