title: How to stop other apps playing music from my current activity?
body: <p>In my app I am trying to make a button which when clicked stops all other apps that are playing music. What I want is similar to that if I am playing music through one music player and if I try playing some other music through a second  music player, the current music player stops and then the second one starts. How do we stop other apps playing music from current activity/app?</p>