1

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

Matthieu Brucher
  • 21,634
  • 7
  • 38
  • 62
Andrew Emad
  • 277
  • 3
  • 13

1 Answers1

3

I think what you are looking for is

AudioManager.isMusicActive()

You can find more detailed info about AudioManager here

Alp
  • 3,027
  • 1
  • 13
  • 28