In Android, I make an outgoing phone call without any user interaction. If the call is not answered within a specific amount of time, I want to cancel the call. I can't find a way to cancel the call.
Asked
Active
Viewed 620 times
2 Answers
0
telephonyService.endCall();
if you're using this, which I believe is the case. If not, please paste your code here.
Cheers

g00dy
- 6,752
- 2
- 30
- 43
-
This is not a public API. Reflection technique should be used to get this function. – Royston Pinto Mar 05 '13 at 07:24
-
Please give an example of that. Can you give a suggestion here without knowing the code? – g00dy Mar 05 '13 at 07:27
-
Take a look [here](http://stackoverflow.com/questions/599443/hang-up-outgoing-call-in-android) I think that the first answer is giving the key. – g00dy Mar 05 '13 at 07:56
0
Here is the code to drop incoming call , you will get a notification about the phone state following that please that whether the call is picked or not and drop the call Here
Use Timer Inside the broadcast receiver to monitor the minimum interval and then after the interval passed away check whether the call was picked or not and act correspondingly .use timer or Exceutor or Handler to implement the delay .

Vipin Sahu
- 1,441
- 1
- 18
- 29
-
-
add this intent filter to your broadcast receiver and do listen for out going action through intent and then use the same code to end the call after the requisite delay – Vipin Sahu Mar 05 '13 at 08:53