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 <andrei.comand...@gmail.com> wrote: > 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 <suniljmis...@gmail.com> wrote: > > > > > > > > > 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 ringing call the incommingNumber is > > > provided, but in the other 2 cases the number is missing!! > > > > My question is: Is this the default behavior (and the issue is in > > > documentation) or is a bug in my platform? > > > > Test was made on Nexus One upgrade 2.3.6. > > > > Tanks for your time! > > > > Regards Andrei. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en