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:
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
2 matches
Mail list logo