暂停首歌的时候手机响了 [英] Pause song when phone rings
本文介绍了暂停首歌的时候手机响了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是pretty的新的Android开发。
I am pretty new to android development.
我想暂停多媒体每当电话铃声响起,然后再次启动时,通话结束。
I wish to pause the multimedia whenever the phone rings and then start again when the call ends.
这怎么办呢?
推荐答案
你想要的是一个的 的BroadcastReceiver
,该通知,当手机接收到呼叫。 这里你可以找到一个教程在此。
What you want is a BroadcastReceiver
, which is notified, when the phone receives a call. Here you can find a Tutorial on this.
这篇关于暂停首歌的时候手机响了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文