I'd like to know the result of an outgoing call (i.e. whether or not the phone on the other end answered or no one ever picked up). I'm trying to make a list of phone numbers that do answer when called and ones that don't answer when called.
Asked
Active
Viewed 262 times
1 Answers
0
Take a look at this answer and go through this documentations (1),(2).
The article mentioned below will also help you to start with your stuff.
detecting-incoming-and-outgoing-calls-in-android
All the best.
-
thak you, but i want to know exactly how we come to know the call is pickdup or not. if not pickup the call then how to terminate the call. because i need go for ohter number to make call. – Deepu Mandy Feb 20 '12 at 11:09
-
Just go through this article. It will give you some tips to proceed. http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html – Hussain Feb 21 '12 at 04:13
-
please do clarify,in PhoneStateListener class we have onCallStateChanged() and get the staus is ringing,offhook,idle. is three states for outgoing(when i diled and call is going) number or incoming number(means when outgoing call is going and any incoming call is arrived in my phone). what i actually want is i made a call with startActivity(callintent); then i want to get the status of outgoing call ie..... whether its ringing/waiting/unavailable. – Deepu Mandy Feb 21 '12 at 18:23
-
I dont know whether you can do all these things but see `off_hook` will give you **At least one call exists that is dialing, active, or on hold, and no calls are ringing or waiting.** and ringing will give the **A new call arrived and is ringing or waiting. In the latter case, another call is already active.** Make use of this. – Hussain Feb 22 '12 at 04:24
-
k.i will try. and i want to end the outgoing call.how? by using broadcastreceiver->onreceive()->this.abortBroadCact(). is it correct? – Deepu Mandy Feb 22 '12 at 07:05
-
Try this http://stackoverflow.com/questions/599443/android-how-to-hang-up-outgoing-call. You can end the call based on the suggestions given here. – Hussain Feb 22 '12 at 07:15
-
how do we wait the control over a time (eq:30sec/20sec). that is in my module i have check the status of outgoing call if ringing ... set the time to wait for some timeand finish/trminate call by me. do u have idea? – Deepu Mandy Feb 22 '12 at 10:02