>
> 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.PhoneStateListener.LISTEN_NONE);
> }
>
> but still ...
> i tried everything and compared parts of my program with solutions i
> found on this group and i don't understand why this doesn't work !!!
Try LISTEN_CALL_STATE. LISTEN_SERVICE_STATE is whether or not you have a
cell signal. LISTEN_CALL_STATE is whether or not there is a call going on.
--
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---