[android-developers] Re: onCallStateChanged(int state, String number)

2011-10-25 Thread ch
Thank you Sunil, I wasn't looking for a workaround i just want to know if this is intentional or not. Regards Andrei. On Oct 25, 8:32 am, Sunil Mishra suniljmis...@gmail.com wrote: Hi, i think for idle it will not give any phone number, just imagine how can u get phone no on a idle phone?

[android-developers] Re: onCallStateChanged(int state, String number)

2011-10-24 Thread Sunil Mishra
Hi, can you describe about other 2 cases and what you mean by that? On Oct 24, 5:38 pm, ch andrei.comand...@gmail.com wrote: Hi, I observed an undocumented behavior of the method PhoneStateListener.onCallStateChanged(int state, String incomingNumber). When the method is called on a new

[android-developers] Re: onCallStateChanged(int state, String number)

2011-10-24 Thread ch
Hi Sunil, As far as i know the onCallStateChanged callback is called when a phone call state is changed (ringing,offhook and idle). On the callback is called for ringing, the phone number is provided for offhook and idle, the phone number is empty. Andrei On Oct 24, 4:24 pm, Sunil Mishra

[android-developers] Re: onCallStateChanged(int state, String number)

2011-10-24 Thread Sunil Mishra
Hi, i think for idle it will not give any phone number, just imagine how can u get phone no on a idle phone? For the off-hook mode you can catch the phone number into a variable when phone call state changes to phone ringing and then try working with the phone no. On Oct 24, 6:52 pm, ch