Can anyone tell me what is the use of phonestateintentreceiver.notifyPhoneCallState
?
Asked
Active
Viewed 4,804 times
8

naXa stands with Ukraine
- 35,493
- 19
- 190
- 259

anddev
- 3,144
- 12
- 39
- 70
-
6This is called to receive a notification about an incoming phone call. – A. Abiri Jul 26 '11 at 05:57
2 Answers
4
I know it is too late to post an answer here, may be helpful for guys who refer this in future.
notifyPhoneCallState has to be called if your application wishes to receive a notification about an incoming phone call.

manDroid
- 1,125
- 3
- 13
- 25
-
1. it's deprecated and removed from SDK. 2. why only incoming? couldn't you use it for receiving outgoing phone call intents? – naXa stands with Ukraine Sep 26 '18 at 23:43
0
Well... The first comment in the class says
DO NOT USE THIS CLASS: Use android.telephony.TelephonyManager and PhoneStateListener instead.
So maybe look into those other classes.

Jon7
- 7,165
- 2
- 33
- 39
-
1Thanks Jon7 for your answer but actually I want to just know the use of this particular class. I'll keep in mind your advice. Thanks – anddev Jul 26 '11 at 06:12