[android-developers] Re: detecting idle, off hook and ringing

2009-05-27 Thread PI9
Thanks a lot!! that finally works ! On May 26, 4:59 pm, "Mark Murphy" wrote: > > I add : > > > �...@override > >       public void onResume() { > >            super.onResume(); > > >          telephone.listen  (psl, > > android.telephony.PhoneStateListener.LISTEN_SERVICE_STATE); > >       } > >

[android-developers] Re: detecting idle, off hook and ringing

2009-05-26 Thread Mark Murphy
> > I add : > > @Override > public void onResume() { >super.onResume(); > > telephone.listen (psl, > android.telephony.PhoneStateListener.LISTEN_SERVICE_STATE); > } > > @Override > public void onDestroy() { > telephone.listen (psl, > andro

[android-developers] Re: detecting idle, off hook and ringing

2009-05-26 Thread PI9
I add : @Override public void onResume() { super.onResume(); telephone.listen (psl, android.telephony.PhoneStateListener.LISTEN_SERVICE_STATE); } @Override public void onDestroy() { telephone.listen (psl, android.telephony.PhoneStateListe

[android-developers] Re: detecting idle, off hook and ringing

2009-05-26 Thread Mark Murphy
> > As Bnet above, i'm trying to write a program whichs detects the > different states of the phone and mke a different noise in each case. > There is a problem that i really don't understand! > Please someone can take a look at it and try to explain to ma what's > wrong ? 1. You have create