and do add some static variable that will tell you that it is not an
incoming call OFFHOOK state..

On Fri, Oct 15, 2010 at 3:29 PM, Nicolas Zerr <[email protected]>wrote:

> Hello,
>
> You should use a PhoneStateListener and watch for the
> CALL_STATE_OFFHOOK statement.
>
> public class MyPhoneStateListener extends PhoneStateListener {
>                @Override
>                public void onCallStateChanged(int state, String
> incomingNumber) {
>                        switch (state)
>                        {
>                        case TelephonyManager.CALL_STATE_IDLE :
>                                break;
>                        case TelephonyManager.CALL_STATE_OFFHOOK :
>                                doSomething();
>                                break;
>                        case TelephonyManager.CALL_STATE_RINGING :
>                                break;
>                        default :
>                                break;
>                        }
>                }
>        }
>
> Also, don't forget to register your receiver, or add the receiver tag
> and the READ_PHONE_STATE permission in the Manifest.
>
> On 14 oct, 17:08, Robotten <[email protected]> wrote:
> > I havn´t been able to find out, how to detect the event (if there are
> > any), when an outgoing call is answered - does anybody know how to do
> > this?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 

 A N K ! T......

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to