开发者

Incoming call starts a Service

开发者 https://www.devze.com 2023-03-17 05:59 出处:网络
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 开发者_如何学Pythonto connect to a remote XMPP server and show any new mes

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 开发者_如何学Pythonto 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号