Monday, October 24, 2011

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

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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate