How to detect that music play in background

后端 未结 1 1771
慢半拍i
慢半拍i 2021-01-27 00:03

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 yo

相关标签:
1条回答
  • 2021-01-27 00:25

    I think what you are looking for is

    AudioManager.isMusicActive()

    You can find more detailed info about AudioManager here

    0 讨论(0)
提交回复
热议问题