How to detect that music play in background

那年仲夏 提交于 2019-12-20 04:29:09

问题


I want help in detecting if there is a music play in background on the phone or not because I play more than one music sequentially in my app but they are intersection thank you


回答1:


I think what you are looking for is

AudioManager.isMusicActive()

You can find more detailed info about AudioManager here



来源:https://stackoverflow.com/questions/30953931/how-to-detect-that-music-play-in-background

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