如何检测传入的Skype /电话的Viber [英] how to detect incoming Skype/Viber call

查看:201
本文介绍了如何检测传入的Skype /电话的Viber的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个应用程序的音乐和我需要以停止播放歌曲,以检测来电(电话,Skype和Viber的等等)。我能察觉使用PhoneState监听GSM电话呼叫。有什么方法来检测数据/网络电话(Skype和Viber的)调用?

I am developing a music app and for that I need to detect incoming calls (Phone, Skype, Viber etc) in order to stop the playing song. I can detect GSM calls using PhoneState listener. Is there any way to detect data/VoIP (Skype, Viber) calls?

推荐答案

您应该不需要任何检测这么具体,而是正确地管理音频焦点。请参阅有关如何做到这一点本指南:<一href=\"https://developer.android.com/training/managing-audio/audio-focus.html\">https://developer.android.com/training/managing-audio/audio-focus.html

You shouldn't need to detect anything so specific, but rather manage audio focus correctly. Please see this guide on how to do that: https://developer.android.com/training/managing-audio/audio-focus.html

这篇关于如何检测传入的Skype /电话的Viber的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆