How to detect that music play in background

594 views Asked by At

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

There are 1 answers

0
Alp On BEST ANSWER

I think what you are looking for is

AudioManager.isMusicActive()

You can find more detailed info about AudioManager here