Take the 2-minute tour ×

I’d like to start a service by using PHONE_STATE when an incoming call gets to the phone. After that, my service is intended to connect to a remote XMPP server and show any new messages to the user. That’s easy to do but is there a better approach of doing so ?

I appreciate any help or ideas.

share|improve this question
Why launch when a call comes in, as opposed to when hanging up? Are the messages to be displayed within context of the incoming call? –  ErikR Jul 5 '11 at 18:28
add comment

1 Answer

up vote 1 down vote accepted

check out this question to learn how to get a call back when the phone is ringing. Then you'll just start your service from inside that callback.

share|improve this answer
add comment

Your Answer


