[android-developers] Re: ACTION_PHONE_STATE_CHANGED working in 1.5 SDK?

2009-06-05 Thread Mark Murphy
john wrote: Has anyone been able to react to phone calls without registering a background service to poll the getCallState() method repeatedly? In an activity, or an unfortunately-long-running service, you can use a PhoneStateListener:

[android-developers] Re: ACTION_PHONE_STATE_CHANGED working in 1.5 SDK?

2009-06-05 Thread john
Thanks, I wasn't aware of PhoneStateListener. Of course, if I want my program to work consistently I need to get this Broadcast Receiver working. I've had some very bad experiences with long-running services (they tend not to run very long)! Everything in the documentation says to use Broadcast