Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
刚刚完成我的媒体播放器应用程序,但如果我的应用程序正在运行并且电话响了,它会继续播放。有什么办法可以在电话响起时暂停播放器,并在通话结束后恢复播放?或者,如果电话响起,可能会退出应用程序?
几个建议
http://www.vogella.com/articles/AndroidServices/article.html
在通话中暂停音乐播放器,并在 android 通话后再次恢复播放
电话响起时暂停歌曲