Detect call state change in VOIP Android apps

谁都会走 提交于 2019-12-07 18:31:15

问题


Is there a way to detect the beginning/ending of voice calls in apps such as Google Hangouts / Skype? (I know this is a shot in the dark, but I was wondering if anyone researched this option).

I'm interested in something like Android's receivers for the android.intent.action.PHONE_STATE and the android.intent.action.NEW_OUTGOING_CALL actions


回答1:


Skype broadcast:

com.skype.android.CONVERSATION_LIVE_STATE

There u can read:

com.skype.live_identity -> ur friend
com.skype.live_status -> RINGING_FOR_ME or STARTING or NONE
com.skype.account -> your account 


来源:https://stackoverflow.com/questions/26795814/detect-call-state-change-in-voip-android-apps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!